diff options
author | dholland <dholland@NetBSD.org> | 2008-01-14 00:23:51 +0000 |
---|---|---|
committer | dholland <dholland@NetBSD.org> | 2008-01-14 00:23:51 +0000 |
commit | 75ac6f4b4e5cbe8cd70943b174c38771b817c6ff (patch) | |
tree | e2b60ebac50f7c8c92ddac55ad7cdf0979731f63 /rogue/room.c | |
parent | 90a64b5b883e72d7189621a32f110d746d66d666 (diff) | |
download | bsdgames-darwin-75ac6f4b4e5cbe8cd70943b174c38771b817c6ff.tar.gz bsdgames-darwin-75ac6f4b4e5cbe8cd70943b174c38771b817c6ff.tar.zst bsdgames-darwin-75ac6f4b4e5cbe8cd70943b174c38771b817c6ff.zip |
Whitespace/KNF nits.
Diffstat (limited to 'rogue/room.c')
-rw-r--r-- | rogue/room.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/rogue/room.c b/rogue/room.c index f81106bd..01bc4b4a 100644 --- a/rogue/room.c +++ b/rogue/room.c @@ -1,4 +1,4 @@ -/* $NetBSD: room.c,v 1.10 2007/12/27 23:53:01 dholland Exp $ */ +/* $NetBSD: room.c,v 1.11 2008/01/14 00:23:52 dholland Exp $ */ /* * Copyright (c) 1988, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)room.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: room.c,v 1.10 2007/12/27 23:53:01 dholland Exp $"); +__RCSID("$NetBSD: room.c,v 1.11 2008/01/14 00:23:52 dholland Exp $"); #endif #endif /* not lint */ @@ -68,31 +68,31 @@ const struct option { } options[NOPTS] = { { "Show position only at end of run (\"jump\"): ", - 1, (char **) 0, &jump + 1, (char **)0, &jump }, { "Follow turnings in passageways (\"passgo\"): ", - 1, (char **) 0, &passgo + 1, (char **)0, &passgo }, { "Don't print skull when killed (\"noskull\" or \"notombstone\"): ", - 1, (char **) 0, &no_skull + 1, (char **)0, &no_skull }, { "Ask player before saying 'Okay, bye-bye!' (\"askquit\"): ", - 1, (char **) 0, &ask_quit + 1, (char **)0, &ask_quit }, { "Name (\"name\"): ", - 0, &nick_name, (boolean *) 0 + 0, &nick_name, (boolean *)0 }, { "Fruit (\"fruit\"): ", - 0, &fruit, (boolean *) 0 + 0, &fruit, (boolean *)0 }, { "Save file (\"file\"): ", - 0, &save_file, (boolean *) 0 + 0, &save_file, (boolean *)0 } }; @@ -604,10 +604,10 @@ CH: if (j != 0) { /* * We rely on the option string being - * allocated to hold MAX_OPT_LEN+2 + * allocated to hold MAX_OPT_LEN+2 * bytes. This is arranged in init.c. */ - (void) strcpy(*(options[i].strval), buf); + (void)strcpy(*(options[i].strval), buf); } opt_show(i); goto CH; |