summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
authorveego <veego@NetBSD.org>1998-08-30 09:19:36 +0000
committerveego <veego@NetBSD.org>1998-08-30 09:19:36 +0000
commit5a555a984855e94b0fc3c9154da6b65208ba2c70 (patch)
tree285ed9cc28655053e6f1520670b43ae864d0c264 /boggle
parentc4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (diff)
downloadbsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.gz
bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.zst
bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.zip
Add braces to make the new egcs happy.
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/bog.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/boggle/boggle/bog.c b/boggle/boggle/bog.c
index c602e7d4..43bd0c5a 100644
--- a/boggle/boggle/bog.c
+++ b/boggle/boggle/bog.c
@@ -1,4 +1,4 @@
-/* $NetBSD: bog.c,v 1.8 1997/10/11 02:12:11 lukem Exp $ */
+/* $NetBSD: bog.c,v 1.9 1998/08/30 09:19:36 veego Exp $ */
/*-
* Copyright (c) 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\n\
#if 0
static char sccsid[] = "@(#)bog.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: bog.c,v 1.8 1997/10/11 02:12:11 lukem Exp $");
+__RCSID("$NetBSD: bog.c,v 1.9 1998/08/30 09:19:36 veego Exp $");
#endif
#endif /* not lint */
@@ -166,18 +166,19 @@ main(argc, argv)
argv += optind;
/* process final arguments */
- if (argc > 0)
+ if (argc > 0) {
if (strcmp(argv[0], "+") == 0)
reuse = 1;
else if (strcmp(argv[0], "++") == 0)
selfuse = 1;
+ }
if (reuse || selfuse) {
argc -= 1;
argv += 1;
}
- if (argc > 0)
+ if (argc > 0) {
if (islower(argv[0][0])) {
if (strlen(argv[0]) != 16) {
usage();
@@ -188,6 +189,7 @@ main(argc, argv)
} else {
usage();
}
+ }
if (batch && bspec == NULL)
errx(1, "must give both -b and a board setup");