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
|
@ -124,7 +124,7 @@ sendmessage(struct natstr *us, struct natstr *to, char *message, int verbose)
|
|||
|
||||
time(&now);
|
||||
tm = localtime(&now);
|
||||
for (other = player_next(0); other != 0; other = player_next(other)) {
|
||||
for (other = player_next(NULL); other; other = player_next(other)) {
|
||||
if (other->state != PS_PLAYING)
|
||||
continue;
|
||||
if (to && other->cnum != to->nat_cnum)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue