From 273634344923a056b5158b2db74bf61503c69545 Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 8 Feb 2004 00:33:31 +0000 Subject: Control -d by #ifdef DEBUG; adjust usage message accordingly. Bug reported by Malcolm Parsons in Debian bug 84852. --- snake/snake/snake.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'snake') diff --git a/snake/snake/snake.c b/snake/snake/snake.c index 34413fa6..df95bfeb 100644 --- a/snake/snake/snake.c +++ b/snake/snake/snake.c @@ -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); } -- cgit v1.2.3-56-ge451