Don't cast void to void.
This commit is contained in:
parent
262e1bafba
commit
7c52730439
4 changed files with 12 additions and 12 deletions
|
@ -215,7 +215,7 @@ explore(void)
|
|||
}
|
||||
|
||||
if (!player->god && !player->owner && sect.sct_type != SCT_SANCT) {
|
||||
(void)takeover(§, player->cnum);
|
||||
takeover(§, player->cnum);
|
||||
justtook = 1;
|
||||
sect.sct_oldown = own;
|
||||
sect.sct_work = work;
|
||||
|
|
|
@ -106,9 +106,9 @@ new(void)
|
|||
} else {
|
||||
(void)time(&now);
|
||||
#if !defined(_WIN32)
|
||||
(void)srandom(now);
|
||||
srandom(now);
|
||||
#else
|
||||
(void)srand(now);
|
||||
srand(now);
|
||||
#endif
|
||||
for (i = 0; i < 300 && !player->aborted; i++) {
|
||||
/* Both x and y should be either odd or even */
|
||||
|
|
|
@ -95,9 +95,9 @@ ioq_drain(struct ioqueue *ioq)
|
|||
|
||||
while ((qp = ioq->list.queue.q_forw) != &ioq->list.queue) {
|
||||
io = (struct io *)qp;
|
||||
(void)emp_remque(&io->queue);
|
||||
(void)free((s_char *)io->data);
|
||||
(void)free((s_char *)io);
|
||||
emp_remque(&io->queue);
|
||||
free(io->data);
|
||||
free(io);
|
||||
}
|
||||
|
||||
ioq->cc = 0;
|
||||
|
@ -350,17 +350,17 @@ removecc(struct ioqueue *ioq, register int cc)
|
|||
there = io->nbytes - io->offset;
|
||||
if (there < 0) {
|
||||
/* error */
|
||||
(void)emp_remque(&io->queue);
|
||||
(void)free((s_char *)io);
|
||||
emp_remque(&io->queue);
|
||||
free(io);
|
||||
continue;
|
||||
}
|
||||
if (remain >= there) {
|
||||
/* not enough or exact; free entry */
|
||||
nbytes += there;
|
||||
remain -= there;
|
||||
(void)emp_remque(&io->queue);
|
||||
(void)free(io->data);
|
||||
(void)free((s_char *)io);
|
||||
emp_remque(&io->queue);
|
||||
free(io->data);
|
||||
free(io);
|
||||
} else {
|
||||
/* too much; increment offset */
|
||||
io->offset += remain;
|
||||
|
|
|
@ -100,7 +100,7 @@ player_login(void *ud)
|
|||
}
|
||||
player->state = PS_SHUTDOWN;
|
||||
if (!io_eof(player->iop)) {
|
||||
(void)pr_player(player, C_EXIT, "so long...\n");
|
||||
pr_player(player, C_EXIT, "so long...\n");
|
||||
io_noblocking(player->iop, 0);
|
||||
while (io_output(player->iop, IO_WAIT) > 0) ;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue