Don't use 0 as null pointer constant, part 3
This part replaces E == 0 by !E, where E has pointer type.
This commit is contained in:
parent
90f8f2b099
commit
6ae4eca045
79 changed files with 121 additions and 121 deletions
|
@ -117,7 +117,7 @@ player_delete(struct player *lp)
|
|||
struct player *
|
||||
player_next(struct player *lp)
|
||||
{
|
||||
if (lp == 0)
|
||||
if (!lp)
|
||||
lp = (struct player *)Players.q_forw;
|
||||
else
|
||||
lp = (struct player *)lp->queue.q_forw;
|
||||
|
@ -129,7 +129,7 @@ player_next(struct player *lp)
|
|||
struct player *
|
||||
player_prev(struct player *lp)
|
||||
{
|
||||
if (lp == 0)
|
||||
if (!lp)
|
||||
lp = (struct player *)Players.q_back;
|
||||
else
|
||||
lp = (struct player *)lp->queue.q_back;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue