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:
jsm 2004-02-08 00:33:31 +00:00
parent 5c6ba47786
commit 859993b44f

View File

@ -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
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#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 /* not lint */
@ -165,7 +165,7 @@ main(argc, argv)
while ((ch = getopt(argc, argv, "l:w:t")) != -1)
switch ((char) ch) {
#if 0
#ifdef DEBUG
case 'd':
tv = atol(optarg);
break;
@ -181,7 +181,11 @@ main(argc, argv)
break;
case '?':
default:
#ifdef DEBUG
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);
}