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
|
@ -46,7 +46,7 @@ reje(void)
|
|||
struct nstr_item ni;
|
||||
char buf[1024];
|
||||
|
||||
if ((p = getstarg(player->argp[1], "reject or accept? ", buf)) == 0)
|
||||
if (!(p = getstarg(player->argp[1], "reject or accept? ", buf)))
|
||||
return RET_SYN;
|
||||
switch (*p) {
|
||||
case 'r':
|
||||
|
@ -61,7 +61,7 @@ reje(void)
|
|||
}
|
||||
p = getstarg(player->argp[2],
|
||||
"mail, treaties, loans, or announcements? ", buf);
|
||||
if (p == 0)
|
||||
if (!p)
|
||||
return RET_SYN;
|
||||
switch (*p) {
|
||||
case 'a':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue