From 92cd1f7f302cea16f35f50eda2116d1c7ad10025 Mon Sep 17 00:00:00 2001 From: mestre Date: Fri, 25 Dec 2015 20:59:10 +0000 Subject: 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@ --- games/fortune/fortune/fortune.c | 4 ++-- games/fortune/strfile/strfile.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'games/fortune') 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: -- cgit v1.2.3