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/grdc/grdc.c | |
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/grdc/grdc.c')
-rw-r--r-- | games/grdc/grdc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/grdc/grdc.c b/games/grdc/grdc.c index 5da19c842f7..ae49b2bc324 100644 --- a/games/grdc/grdc.c +++ b/games/grdc/grdc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grdc.c,v 1.24 2016/01/04 17:33:24 mestre Exp $ */ +/* $OpenBSD: grdc.c,v 1.25 2016/01/07 16:00:32 tb Exp $ */ /* * * Copyright 2002 Amos Shapir. Public domain. @@ -234,14 +234,14 @@ main(int argc, char *argv[]) refresh(); endwin(); fprintf(stderr, "grdc terminated by signal %d\n", sigtermed); - exit(1); + return 1; } } while (n == 0 || nowtv.tv_sec < endtv.tv_sec); standend(); clear(); refresh(); endwin(); - return(0); + return 0; } void |