diff options
author | tb <tb@cvs.openbsd.org> | 2016-01-07 16:00:35 +0000 |
---|---|---|
committer | tb <tb@cvs.openbsd.org> | 2016-01-07 16:00:35 +0000 |
commit | 93e376267b624e9b6d6dc70ec32418c59d2a25b0 (patch) | |
tree | 9b0fedba72c0c99cf7d268ba0c169cb908c27a59 /games/atc | |
parent | 58a106c10757a33412a67cbda574c32351dea1a8 (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/atc')
-rw-r--r-- | games/atc/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/atc/main.c b/games/atc/main.c index 2d8526f9345..ea3a42da1f8 100644 --- a/games/atc/main.c +++ b/games/atc/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.26 2015/12/31 16:50:29 mestre Exp $ */ +/* $OpenBSD: main.c,v 1.27 2016/01/07 16:00:31 tb Exp $ */ /* $NetBSD: main.c,v 1.4 1995/04/27 21:22:25 mycroft Exp $ */ /*- @@ -129,7 +129,7 @@ main(int argc, char *argv[]) } if (f_usage || f_showscore || f_list || f_printpath) - exit(0); + return 0; if (file == NULL) file = default_game(); @@ -137,7 +137,7 @@ main(int argc, char *argv[]) file = okay_game(file); if (file == NULL || read_file(file) < 0) - exit(1); + return 1; setup_screen(sp); |