summaryrefslogtreecommitdiff
path: root/games/tetris
diff options
context:
space:
mode:
authortb <tb@cvs.openbsd.org>2016-01-07 16:00:35 +0000
committertb <tb@cvs.openbsd.org>2016-01-07 16:00:35 +0000
commit93e376267b624e9b6d6dc70ec32418c59d2a25b0 (patch)
tree9b0fedba72c0c99cf7d268ba0c169cb908c27a59 /games/tetris
parent58a106c10757a33412a67cbda574c32351dea1a8 (diff)
Some basic code maintenance in games/
- in main() replace exit with return - drop some /* NOTREACHED */ lint comments along the way. - make more use of standard CFLAGS, esp. -Wimplicit-function-declaration - add and sort some headers when needed - add straightforward pledges to some programs used at compile time discussed with and ok mestre@
Diffstat (limited to 'games/tetris')
-rw-r--r--games/tetris/tetris.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/tetris/tetris.c b/games/tetris/tetris.c
index f2c7d84cf28..90ce7d0f838 100644
--- a/games/tetris/tetris.c
+++ b/games/tetris/tetris.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tetris.c,v 1.28 2016/01/04 17:33:24 mestre Exp $ */
+/* $OpenBSD: tetris.c,v 1.29 2016/01/07 16:00:33 tb Exp $ */
/* $NetBSD: tetris.c,v 1.2 1995/04/22 07:42:47 cgd Exp $ */
/*-
@@ -185,7 +185,7 @@ main(int argc, char *argv[])
break;
case 's':
showscores(0);
- exit(0);
+ return 0;
default:
usage();
}
@@ -342,7 +342,7 @@ main(int argc, char *argv[])
showscores(level);
- exit(0);
+ return 0;
}
void