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
|
@ -540,7 +540,7 @@ build_bridge(struct sctstr *sp, short *vec)
|
|||
|
||||
if ((val = chkdir(*p, DIR_FIRST, DIR_LAST)) < 0) {
|
||||
pr("'%c' is not a valid direction...\n", *p);
|
||||
direrr(0, 0, 0);
|
||||
direrr(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
newx = sp->sct_x + diroff[val][0];
|
||||
|
@ -816,7 +816,7 @@ build_tower(struct sctstr *sp, short *vec)
|
|||
|
||||
if ((val = chkdir(*p, DIR_FIRST, DIR_LAST)) < 0) {
|
||||
pr("'%c' is not a valid direction...\n", *p);
|
||||
direrr(0, 0, 0);
|
||||
direrr(NULL, NULL, NULL);
|
||||
return 0;
|
||||
}
|
||||
newx = sp->sct_x + diroff[val][0];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue