diff options
author | phk <phk@FreeBSD.org> | 1997-09-18 13:45:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-09-18 13:45:34 +0000 |
commit | 2d831c7d21d4e39820d9fe862e7ec818476c083b (patch) | |
tree | 8fbe1264a5b4847d971add4433faa0f7cce9b35c /games/rogue | |
parent | bf06d52b9dd8b00f77a1fd5550c0d7ba459c8744 (diff) | |
download | FreeBSD-src-2d831c7d21d4e39820d9fe862e7ec818476c083b.zip FreeBSD-src-2d831c7d21d4e39820d9fe862e7ec818476c083b.tar.gz |
Many places in the code NULL is used in integer context, where
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
Diffstat (limited to 'games/rogue')
-rw-r--r-- | games/rogue/inventory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/rogue/inventory.c b/games/rogue/inventory.c index 8fa88a8..5dd6f3d 100644 --- a/games/rogue/inventory.c +++ b/games/rogue/inventory.c @@ -176,9 +176,9 @@ struct id_com_s com_id_tab[COMS] = { 'b', "b down & left", 'c', "c call object", 'n', "n down & right", - NULL, "<SHIFT><dir>: run that way", + '\0', "<SHIFT><dir>: run that way", ')', ") print current weapon", - NULL, "<CTRL><dir>: run till adjacent", + '\0', "<CTRL><dir>: run till adjacent", ']', "] print current armor", 'f', "f<dir> fight till death or near death", '=', "= print current rings", |