Don't use 0 as null pointer constant, part 2
This part replaces E != 0 by E, where E has pointer type.
This commit is contained in:
parent
615681ce16
commit
90f8f2b099
15 changed files with 23 additions and 24 deletions
|
@ -422,7 +422,7 @@ shutdwn(int sig)
|
|||
logerror("Shutdown commencing (cleaning up threads.)");
|
||||
|
||||
play_wrlock_wanted = 1;
|
||||
for (p = player_next(NULL); p != 0; p = player_next(p)) {
|
||||
for (p = player_next(NULL); p; p = player_next(p)) {
|
||||
if (p->state != PS_PLAYING)
|
||||
continue;
|
||||
pr_flash(p, "Server shutting down...\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue