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/arithmetic | |
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/arithmetic')
-rw-r--r-- | games/arithmetic/arithmetic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index fce5bcac5e2..7c5ca4c7e6e 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arithmetic.c,v 1.21 2015/10/24 17:13:27 mmcc Exp $ */ +/* $OpenBSD: arithmetic.c,v 1.22 2015/12/25 20:59:09 mestre Exp $ */ /* * Copyright (c) 1989, 1993 @@ -71,12 +71,12 @@ #include <unistd.h> int getrandom(int, int, int); -void intr(int); +__dead void intr(int); int opnum(int); void penalise(int, int, int); int problem(void); void showstats(void); -void usage(void); +__dead void usage(void); const char keylist[] = "+-x/"; const char defaultkeys[] = "+-"; |