Don't use 0 as null pointer constant, part 1
Use NULL instead of 0, for clarity. Except in pointer comparisons; leave that to the next two commits.
This commit is contained in:
parent
a2ed975ec2
commit
615681ce16
51 changed files with 107 additions and 100 deletions
|
@ -107,7 +107,7 @@ player_delete(struct player *lp)
|
|||
if (lp->iop) {
|
||||
/* it's a real player */
|
||||
io_close(lp->iop);
|
||||
lp->iop = 0;
|
||||
lp->iop = NULL;
|
||||
}
|
||||
free(lp);
|
||||
/* XXX may need to free bigmap here */
|
||||
|
@ -122,7 +122,7 @@ player_next(struct player *lp)
|
|||
else
|
||||
lp = (struct player *)lp->queue.q_forw;
|
||||
if (&lp->queue == &Players)
|
||||
return 0;
|
||||
return NULL;
|
||||
return lp;
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ player_prev(struct player *lp)
|
|||
else
|
||||
lp = (struct player *)lp->queue.q_back;
|
||||
if (&lp->queue == &Players)
|
||||
return 0;
|
||||
return NULL;
|
||||
return lp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue