diff options
author | mestre <mestre@cvs.openbsd.org> | 2015-12-25 20:59:10 +0000 |
---|---|---|
committer | mestre <mestre@cvs.openbsd.org> | 2015-12-25 20:59:10 +0000 |
commit | 92cd1f7f302cea16f35f50eda2116d1c7ad10025 (patch) | |
tree | 332c05298dc2dd259d911995a98da542738a43ff /games/fortune | |
parent | 120323e2e25fc1d6e4650f9e58378c8ea673a99b (diff) |
Declare usage() functions as __dead void, if they don't return, on games section.
Found another one in arithmetic(6) which also didn't return, and removed a function from number(6) which is not used anymore.
OK tb@
Diffstat (limited to 'games/fortune')
-rw-r--r-- | games/fortune/fortune/fortune.c | 4 | ||||
-rw-r--r-- | games/fortune/strfile/strfile.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 1c9da5b4aee..3250420be74 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fortune.c,v 1.47 2015/11/10 15:29:11 deraadt Exp $ */ +/* $OpenBSD: fortune.c,v 1.48 2015/12/25 20:59:09 mestre Exp $ */ /* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */ /*- @@ -136,7 +136,7 @@ void print_file_list(void); void print_list(FILEDESC *, int); void sum_noprobs(FILEDESC *); void sum_tbl(STRFILE *, STRFILE *); -void usage(void); +__dead void usage(void); void zero_tbl(STRFILE *); char *conv_pat(char *); diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index c44c37fb8e9..579ea18a55e 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: strfile.c,v 1.23 2015/10/24 18:33:22 mmcc Exp $ */ +/* $OpenBSD: strfile.c,v 1.24 2015/12/25 20:59:09 mestre Exp $ */ /* $NetBSD: strfile.c,v 1.4 1995/04/24 12:23:09 cgd Exp $ */ /*- @@ -114,7 +114,7 @@ void do_order(void); void getargs(int, char **); void randomize(void); char *unctrl(char); -void usage(void); +__dead void usage(void); /* * main: |