summaryrefslogtreecommitdiffstats
path: root/tetris
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2018-02-04 08:48:05 +0000
committermrg <mrg@NetBSD.org>2018-02-04 08:48:05 +0000
commitcb493735fd2604c5b7b2c82b9811302b5d58ef9d (patch)
tree338054c92302a96c06f506ef5b1a9d9115170223 /tetris
parente5c17e55df9ac3ba0cc4e6836b1296ca4e09c863 (diff)
downloadbsdgames-darwin-cb493735fd2604c5b7b2c82b9811302b5d58ef9d.tar.gz
bsdgames-darwin-cb493735fd2604c5b7b2c82b9811302b5d58ef9d.tar.zst
bsdgames-darwin-cb493735fd2604c5b7b2c82b9811302b5d58ef9d.zip
fix issues found by GCC 6.4:
battlestar was missing some {} in its insane printf()+puts() usage. this is a literal code sequence i found: printf("The blast catches "); printf("the goddess in the "); printf("stomach, knocking "); puts("her to the ground."); printf("She writhes in the "); printf("dirt as the agony of "); puts("death taunts her."); puts("She has stopped moving."); no lines inserted or removed. tetris' checkscores() had wrong and missing {} usage.
Diffstat (limited to 'tetris')
-rw-r--r--tetris/scores.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tetris/scores.c b/tetris/scores.c
index 2157e8bd..847fe15b 100644
--- a/tetris/scores.c
+++ b/tetris/scores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.22 2014/03/22 19:05:30 dholland Exp $ */
+/* $NetBSD: scores.c,v 1.23 2018/02/04 08:48:05 mrg Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -830,7 +830,8 @@ checkscores(struct highscore *hs, int num)
continue;
}
}
- if (sp->hs_level < NLEVELS && sp->hs_level >= 0)
+ }
+ if (sp->hs_level < NLEVELS && sp->hs_level >= 0) {
levelfound[sp->hs_level] = 1;
i++, sp++;
}