Use NULL instead of (FOO *)0, it's easier to read.
This commit is contained in:
parent
3252f8a907
commit
21bf6b41d4
23 changed files with 75 additions and 79 deletions
|
@ -70,8 +70,8 @@ surv(void)
|
|||
s_char *str;
|
||||
/* Note this is not re-entrant anyway, so we keep the buffers
|
||||
around */
|
||||
static s_char *mapbuf = (s_char *)0;
|
||||
static s_char **map = (s_char **)0;
|
||||
static s_char *mapbuf = NULL;
|
||||
static s_char **map = NULL;
|
||||
|
||||
nsect = 0;
|
||||
if ((ptr = getstarg(player->argp[1], "commodity or variable? ", buf)) == 0)
|
||||
|
@ -109,7 +109,7 @@ surv(void)
|
|||
map[i] = &mapbuf[MAPWIDTH(1) * i];
|
||||
} else if (map) {
|
||||
free(map);
|
||||
map = (s_char **)0;
|
||||
map = NULL;
|
||||
}
|
||||
}
|
||||
if (!mapbuf || !map) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue