Control -d by #ifdef DEBUG; adjust usage message accordingly. Bug
reported by Malcolm Parsons <malcolm@ivywell.screaming.net> in Debian bug 84852.
This commit is contained in:
parent
5c6ba47786
commit
859993b44f
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: snake.c,v 1.19 2004/01/27 20:30:30 jsm Exp $ */
|
/* $NetBSD: snake.c,v 1.20 2004/02/08 00:33:31 jsm Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1980, 1993
|
* Copyright (c) 1980, 1993
|
||||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
|
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: snake.c,v 1.19 2004/01/27 20:30:30 jsm Exp $");
|
__RCSID("$NetBSD: snake.c,v 1.20 2004/02/08 00:33:31 jsm Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -165,7 +165,7 @@ main(argc, argv)
|
|||||||
|
|
||||||
while ((ch = getopt(argc, argv, "l:w:t")) != -1)
|
while ((ch = getopt(argc, argv, "l:w:t")) != -1)
|
||||||
switch ((char) ch) {
|
switch ((char) ch) {
|
||||||
#if 0
|
#ifdef DEBUG
|
||||||
case 'd':
|
case 'd':
|
||||||
tv = atol(optarg);
|
tv = atol(optarg);
|
||||||
break;
|
break;
|
||||||
@ -181,7 +181,11 @@ main(argc, argv)
|
|||||||
break;
|
break;
|
||||||
case '?':
|
case '?':
|
||||||
default:
|
default:
|
||||||
|
#ifdef DEBUG
|
||||||
fputs("usage: snake [-d seed] [-w width] [-l length] [-t]\n", stderr);
|
fputs("usage: snake [-d seed] [-w width] [-l length] [-t]\n", stderr);
|
||||||
|
#else
|
||||||
|
fputs("usage: snake [-w width] [-l length] [-t]\n", stderr);
|
||||||
|
#endif
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user