summaryrefslogtreecommitdiff
path: root/games/bcd/bcd.c
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/bcd/bcd.c
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/bcd/bcd.c')
-rw-r--r--games/bcd/bcd.c6
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