diff options
author | tb <tb@openbsd.org> | 2016-01-07 16:00:31 +0000 |
---|---|---|
committer | tb <tb@openbsd.org> | 2016-01-07 16:00:31 +0000 |
commit | 17641e3181064a4b256bd1af9f64d90af0ac5a36 (patch) | |
tree | 98fdab3423767c37a316f77c8d7dc5f03d43fc12 /games/bcd | |
parent | sync displayed interface flags to reality (diff) | |
download | wireguard-openbsd-17641e3181064a4b256bd1af9f64d90af0ac5a36.tar.xz wireguard-openbsd-17641e3181064a4b256bd1af9f64d90af0ac5a36.zip |
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/bcd')
-rw-r--r-- | games/bcd/bcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/bcd/bcd.c b/games/bcd/bcd.c index 5d97d35f372..9b47f999198 100644 --- a/games/bcd/bcd.c +++ b/games/bcd/bcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bcd.c,v 1.22 2015/10/23 02:01:15 jsg Exp $ */ +/* $OpenBSD: bcd.c,v 1.23 2016/01/07 16:00:31 tb Exp $ */ /* $NetBSD: bcd.c,v 1.6 1995/04/24 12:22:23 cgd Exp $ */ /* @@ -139,7 +139,7 @@ main(int argc, char *argv[]) default: fprintf(stderr, "usage: bcd [-l] [string ...]\n"); fprintf(stderr, "usage: bcd -d [-l]\n"); - exit(1); + return 1; } } argc -= optind; @@ -166,7 +166,7 @@ main(int argc, char *argv[]) while (fgets(cardline, sizeof(cardline), stdin)) printcard(cardline); } - exit(0); + return 0; } void |