From 93e376267b624e9b6d6dc70ec32418c59d2a25b0 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 7 Jan 2016 16:00:35 +0000 Subject: 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@ --- games/pig/pig.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'games/pig') diff --git a/games/pig/pig.c b/games/pig/pig.c index 67aa3d71299..4818cd72366 100644 --- a/games/pig/pig.c +++ b/games/pig/pig.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pig.c,v 1.15 2016/01/04 17:33:24 mestre Exp $ */ +/* $OpenBSD: pig.c,v 1.16 2016/01/07 16:00:33 tb Exp $ */ /* $NetBSD: pig.c,v 1.2 1995/03/23 08:41:40 cgd Exp $ */ /*- @@ -72,7 +72,7 @@ main(int argc, char *argv[]) } (void)putchar(ch); } - exit(0); + return 0; } void -- cgit v1.2.3