From 1c9494f62ba00343a6a84eda8de135f183beb31d Mon Sep 17 00:00:00 2001 From: hubertf Date: Sun, 13 Sep 1998 15:27:25 +0000 Subject: [PATCH] mark non-returning functions (PR#6144 by Joseph Myers ) --- games/arithmetic/arithmetic.c | 8 ++++---- games/atc/extern.h | 6 +++--- games/backgammon/teachgammon/tutor.h | 6 +++--- games/battlestar/extern.h | 8 ++++---- games/boggle/boggle/extern.h | 4 ++-- games/caesar/caesar.c | 6 +++--- games/canfield/canfield/canfield.c | 6 +++--- games/cribbage/cribbage.h | 4 ++-- games/dm/dm.c | 6 +++--- games/factor/factor.c | 6 +++--- games/fish/fish.c | 6 +++--- games/fortune/fortune/fortune.c | 6 +++--- games/fortune/strfile/strfile.c | 6 +++--- games/gomoku/gomoku.h | 8 ++++---- games/hunt/hunt/hunt.c | 6 +++--- games/hunt/huntd/hunt.h | 4 ++-- games/mille/mille.h | 4 ++-- games/pig/pig.c | 6 +++--- games/primes/primes.c | 6 +++--- games/quiz/quiz.c | 6 +++--- games/robots/robots.h | 4 ++-- games/rogue/rogue.h | 12 ++++++------ games/sail/extern.h | 6 +++--- games/snake/snake/snake.h | 6 +++--- games/tetris/tetris.c | 6 +++--- games/tetris/tetris.h | 4 ++-- games/worm/worm.c | 8 ++++---- games/worms/worms.c | 8 ++++---- games/wump/wump.c | 6 +++--- 29 files changed, 89 insertions(+), 89 deletions(-) diff --git a/games/arithmetic/arithmetic.c b/games/arithmetic/arithmetic.c index 3150717e03f1..2042095edcc8 100644 --- a/games/arithmetic/arithmetic.c +++ b/games/arithmetic/arithmetic.c @@ -1,4 +1,4 @@ -/* $NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $ */ +/* $NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)arithmetic.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $"); +__RCSID("$NetBSD: arithmetic.c,v 1.11 1998/09/13 15:27:25 hubertf Exp $"); #endif #endif /* not lint */ @@ -89,13 +89,13 @@ __RCSID("$NetBSD: arithmetic.c,v 1.10 1998/02/03 05:33:32 perry Exp $"); #include int getrandom __P((int, int, int)); -void intr __P((int)); +void intr __P((int)) __attribute__((__noreturn__)); int main __P((int, char *[])); int opnum __P((int)); void penalise __P((int, int, int)); int problem __P((void)); void showstats __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); char keylist[] = "+-x/"; char defaultkeys[] = "+-"; diff --git a/games/atc/extern.h b/games/atc/extern.h index e233c1c8376d..397c500bd211 100644 --- a/games/atc/extern.h +++ b/games/atc/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.5 1997/10/10 02:07:06 lukem Exp $ */ +/* $NetBSD: extern.h,v 1.6 1998/09/13 15:27:26 hubertf Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -89,8 +89,8 @@ void ioerror __P((int, int, char *)); void iomove __P((int)); int list_games __P((void)); int log_score __P((int)); -void log_score_quit __P((int)); -void loser __P((PLANE *, char *)); +void log_score_quit __P((int)) __attribute__((__noreturn__)); +void loser __P((PLANE *, char *)) __attribute__((__noreturn__)); int main __P((int, char *[])); char name __P((PLANE *)); int next_plane __P((void)); diff --git a/games/backgammon/teachgammon/tutor.h b/games/backgammon/teachgammon/tutor.h index caf40e38197f..b709d0755c01 100644 --- a/games/backgammon/teachgammon/tutor.h +++ b/games/backgammon/teachgammon/tutor.h @@ -1,4 +1,4 @@ -/* $NetBSD: tutor.h,v 1.4 1997/10/10 08:59:55 lukem Exp $ */ +/* $NetBSD: tutor.h,v 1.5 1998/09/13 15:27:26 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -68,5 +68,5 @@ extern struct situatn test[]; int brdeq __P((int *, int *)); void clrest __P((void)); -void leave __P((void)); -void tutor __P((void)); +void leave __P((void)) __attribute__((__noreturn__)); +void tutor __P((void)) __attribute__((__noreturn__)); diff --git a/games/battlestar/extern.h b/games/battlestar/extern.h index d0053a8c299a..c659bb893377 100644 --- a/games/battlestar/extern.h +++ b/games/battlestar/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.8 1998/03/29 04:49:06 mrg Exp $ */ +/* $NetBSD: extern.h,v 1.9 1998/09/13 15:27:26 hubertf Exp $ */ /* * Copyright (c) 1983, 1993 @@ -311,8 +311,8 @@ void chime __P((void)); void convert __P((int)); void crash __P((void)); int cypher __P((void)); -void die __P((void)); -void diesig __P((int)); +void die __P((void)) __attribute__((__noreturn__)); +void diesig __P((int)) __attribute__((__noreturn__)); void dig __P((void)); int draw __P((void)); void drink __P((void)); @@ -332,7 +332,7 @@ void kiss __P((void)); int land __P((void)); int launch __P((void)); void light __P((void)); -void live __P((void)); +void live __P((void)) __attribute__((__noreturn__)); void love __P((void)); int move __P((int, int)); void moveenemy __P((int)); diff --git a/games/boggle/boggle/extern.h b/games/boggle/boggle/extern.h index fb0614ec538e..ea27172cdbf9 100644 --- a/games/boggle/boggle/extern.h +++ b/games/boggle/boggle/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.3 1995/04/24 12:22:37 cgd Exp $ */ +/* $NetBSD: extern.h,v 1.4 1998/09/13 15:27:26 hubertf Exp $ */ /*- * Copyright (c) 1993 @@ -69,5 +69,5 @@ void starttime __P((void)); void startwords __P((void)); void stoptime __P((void)); int timerch __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int validword __P((char *)); diff --git a/games/caesar/caesar.c b/games/caesar/caesar.c index 0291bbe3f858..b9c71efc0cd3 100644 --- a/games/caesar/caesar.c +++ b/games/caesar/caesar.c @@ -1,4 +1,4 @@ -/* $NetBSD: caesar.c,v 1.6 1997/10/11 02:40:39 lukem Exp $ */ +/* $NetBSD: caesar.c,v 1.7 1998/09/13 15:27:27 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -51,7 +51,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)caesar.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: caesar.c,v 1.6 1997/10/11 02:40:39 lukem Exp $"); +__RCSID("$NetBSD: caesar.c,v 1.7 1998/09/13 15:27:27 hubertf Exp $"); #endif #endif /* not lint */ @@ -81,7 +81,7 @@ double stdf[26] = { int main __P((int, char *[])); -void printit __P((char *)); +void printit __P((char *)) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/games/canfield/canfield/canfield.c b/games/canfield/canfield/canfield.c index df43a915b17c..5be6ed8ab92d 100644 --- a/games/canfield/canfield/canfield.c +++ b/games/canfield/canfield/canfield.c @@ -1,4 +1,4 @@ -/* $NetBSD: canfield.c,v 1.10 1998/09/11 13:19:50 hubertf Exp $ */ +/* $NetBSD: canfield.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: canfield.c,v 1.10 1998/09/11 13:19:50 hubertf Exp $"); +__RCSID("$NetBSD: canfield.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $"); #endif #endif /* not lint */ @@ -203,7 +203,7 @@ time_t acctstart; int dbfd = -1; void askquit __P((int)); -void cleanup __P((int)); +void cleanup __P((int)) __attribute__((__noreturn__)); void cleanupboard __P((void)); void clearabovemovebox __P((void)); void clearbelowmovebox __P((void)); diff --git a/games/cribbage/cribbage.h b/games/cribbage/cribbage.h index 4ddec968d4a8..a28b4b06dd72 100644 --- a/games/cribbage/cribbage.h +++ b/games/cribbage/cribbage.h @@ -1,4 +1,4 @@ -/* $NetBSD: cribbage.h,v 1.3 1995/03/21 15:08:46 cgd Exp $ */ +/* $NetBSD: cribbage.h,v 1.4 1998/09/13 15:27:27 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -106,7 +106,7 @@ void printcard __P((WINDOW *, int, CARD, BOOLEAN)); void prpeg __P((int, int, BOOLEAN)); void prtable __P((int)); int readchar __P((void)); -void rint __P((int)); +void rint __P((int)) __attribute__((__noreturn__)); int score __P((BOOLEAN)); int scorehand __P((CARD [], CARD, int, BOOLEAN, BOOLEAN)); void shuffle __P((CARD [])); diff --git a/games/dm/dm.c b/games/dm/dm.c index 36e1ccac7b56..fb8f56713f5c 100644 --- a/games/dm/dm.c +++ b/games/dm/dm.c @@ -1,4 +1,4 @@ -/* $NetBSD: dm.c,v 1.10 1998/09/13 12:34:43 hubertf Exp $ */ +/* $NetBSD: dm.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $ */ /* * Copyright (c) 1987, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\n\ #if 0 static char sccsid[] = "@(#)dm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: dm.c,v 1.10 1998/09/13 12:34:43 hubertf Exp $"); +__RCSID("$NetBSD: dm.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $"); #endif #endif /* not lint */ @@ -78,7 +78,7 @@ const char *hour __P((int)); double load __P((void)); int main __P((int, char *[])); void nogamefile __P((void)); -void play __P((char **)); +void play __P((char **)) __attribute__((__noreturn__)); void read_config __P((void)); int users __P((void)); diff --git a/games/factor/factor.c b/games/factor/factor.c index a0febe27aa41..4c41cc8129db 100644 --- a/games/factor/factor.c +++ b/games/factor/factor.c @@ -1,4 +1,4 @@ -/* $NetBSD: factor.c,v 1.7 1997/10/10 12:51:32 lukem Exp $ */ +/* $NetBSD: factor.c,v 1.8 1998/09/13 15:27:27 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)factor.c 8.4 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: factor.c,v 1.7 1997/10/10 12:51:32 lukem Exp $"); +__RCSID("$NetBSD: factor.c,v 1.8 1998/09/13 15:27:27 hubertf Exp $"); #endif #endif /* not lint */ @@ -90,7 +90,7 @@ extern ubig *pr_limit; /* largest prime in the prime array */ int main __P((int, char *[])); void pr_fact __P((ubig)); /* print factors of a value */ -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/games/fish/fish.c b/games/fish/fish.c index 182305e5990c..c81da3ff0d00 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -1,4 +1,4 @@ -/* $NetBSD: fish.c,v 1.5 1997/11/16 21:41:53 christos Exp $ */ +/* $NetBSD: fish.c,v 1.6 1998/09/13 15:27:27 hubertf Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1990, 1993\n\ #if 0 static char sccsid[] = "@(#)fish.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fish.c,v 1.5 1997/11/16 21:41:53 christos Exp $"); +__RCSID("$NetBSD: fish.c,v 1.6 1998/09/13 15:27:27 hubertf Exp $"); #endif #endif /* not lint */ @@ -94,7 +94,7 @@ int nrandom __P((int)); void printhand __P((int *)); void printplayer __P((int)); int promove __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int usermove __P((void)); int diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 17d95565ea2c..20de41aeb580 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $NetBSD: fortune.c,v 1.13 1998/08/30 09:19:37 veego Exp $ */ +/* $NetBSD: fortune.c,v 1.14 1998/09/13 15:27:28 hubertf Exp $ */ /*- * Copyright (c) 1986, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\ #if 0 static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: fortune.c,v 1.13 1998/08/30 09:19:37 veego Exp $"); +__RCSID("$NetBSD: fortune.c,v 1.14 1998/09/13 15:27:28 hubertf Exp $"); #endif #endif /* not lint */ @@ -158,7 +158,7 @@ void print_file_list __P((void)); void print_list __P((FILEDESC *, int)); void sum_noprobs __P((FILEDESC *)); void sum_tbl __P((STRFILE *, STRFILE *)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); void zero_tbl __P((STRFILE *)); #ifndef NO_REGEX diff --git a/games/fortune/strfile/strfile.c b/games/fortune/strfile/strfile.c index 0e35ba242c68..f4ba208e6ced 100644 --- a/games/fortune/strfile/strfile.c +++ b/games/fortune/strfile/strfile.c @@ -1,4 +1,4 @@ -/* $NetBSD: strfile.c,v 1.7 1997/10/11 07:48:58 lukem Exp $ */ +/* $NetBSD: strfile.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)strfile.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: strfile.c,v 1.7 1997/10/11 07:48:58 lukem Exp $"); +__RCSID("$NetBSD: strfile.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $"); #endif #endif /* not lint */ @@ -142,7 +142,7 @@ void getargs __P((int, char *[])); int main __P((int, char *[])); void randomize __P((void)); char *unctrl __P((char)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); /* diff --git a/games/gomoku/gomoku.h b/games/gomoku/gomoku.h index 1f7a11fa3011..9f304f806e52 100644 --- a/games/gomoku/gomoku.h +++ b/games/gomoku/gomoku.h @@ -1,4 +1,4 @@ -/* $NetBSD: gomoku.h,v 1.4 1997/10/10 13:36:03 lukem Exp $ */ +/* $NetBSD: gomoku.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */ /* * Copyright (c) 1994 @@ -275,11 +275,11 @@ void bdisp_init __P((void)); void cursfini __P((void)); void cursinit __P((void)); void bdwho __P((int)); -void panic __P((char *)); +void panic __P((char *)) __attribute__((__noreturn__)); void log __P((char *)); void dlog __P((char *)); -void quit __P((void)); -void quitsig __P((int)); +void quit __P((void)) __attribute__((__noreturn__)); +void quitsig __P((int)) __attribute__((__noreturn__)); void whatsup __P((int)); int readinput __P((FILE *)); char *stoc __P((int)); diff --git a/games/hunt/hunt/hunt.c b/games/hunt/hunt/hunt.c index dd1ab7a16b18..e527c312af75 100644 --- a/games/hunt/hunt/hunt.c +++ b/games/hunt/hunt/hunt.c @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.c,v 1.7 1998/08/30 09:19:37 veego Exp $ */ +/* $NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $ */ /* * Hunt * Copyright (c) 1985 Conrad C. Huang, Gregory S. Couch, Kenneth C.R.C. Arnold @@ -7,7 +7,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hunt.c,v 1.7 1998/08/30 09:19:37 veego Exp $"); +__RCSID("$NetBSD: hunt.c,v 1.8 1998/09/13 15:27:28 hubertf Exp $"); #endif /* not lint */ # include @@ -87,7 +87,7 @@ extern int cur_row, cur_col; void dump_scores __P((SOCKET)); long env_init __P((long)); void fill_in_blanks __P((void)); -void leave __P((int, char *)); +void leave __P((int, char *)) __attribute__((__noreturn__)); int main __P((int, char *[])); # ifdef INTERNET SOCKET *list_drivers __P((void)); diff --git a/games/hunt/huntd/hunt.h b/games/hunt/huntd/hunt.h index 1864a4727e43..95072e55a8c7 100644 --- a/games/hunt/huntd/hunt.h +++ b/games/hunt/huntd/hunt.h @@ -1,4 +1,4 @@ -/* $NetBSD: hunt.h,v 1.4 1998/09/11 13:46:30 hubertf Exp $ */ +/* $NetBSD: hunt.h,v 1.5 1998/09/13 15:27:28 hubertf Exp $ */ /* * Hunt @@ -446,7 +446,7 @@ void start_driver __P((void)); void stmonitor __P((PLAYER *)); void stplayer __P((PLAYER *, int)); char translate __P((char)); -SIGNAL_TYPE cleanup __P((int)); +SIGNAL_TYPE cleanup __P((int)) __attribute__((__noreturn__)); SIGNAL_TYPE intr __P((int)); SIGNAL_TYPE sigalrm __P((int)); SIGNAL_TYPE sigemt __P((int)); diff --git a/games/mille/mille.h b/games/mille/mille.h index 205bdab390de..416e9f0debd0 100644 --- a/games/mille/mille.h +++ b/games/mille/mille.h @@ -1,4 +1,4 @@ -/* $NetBSD: mille.h,v 1.8 1998/07/26 16:11:39 mycroft Exp $ */ +/* $NetBSD: mille.h,v 1.9 1998/09/13 15:27:29 hubertf Exp $ */ /* * Copyright (c) 1982, 1993 @@ -231,7 +231,7 @@ int canplay __P((PLAY *, PLAY *, CARD)); int check_ext __P((bool)); void check_go __P((void)); void check_more __P((void)); -void die __P((int)); +void die __P((int)) __attribute__((__noreturn__)); void domove __P((void)); bool error __P((const char *, ...)); void extrapolate __P((PLAY *)); diff --git a/games/pig/pig.c b/games/pig/pig.c index a6a32739e052..028fe59b4ea0 100644 --- a/games/pig/pig.c +++ b/games/pig/pig.c @@ -1,4 +1,4 @@ -/* $NetBSD: pig.c,v 1.6 1997/10/12 01:00:27 lukem Exp $ */ +/* $NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ #if 0 static char sccsid[] = "@(#)pig.c 8.2 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: pig.c,v 1.6 1997/10/12 01:00:27 lukem Exp $"); +__RCSID("$NetBSD: pig.c,v 1.7 1998/09/13 15:27:29 hubertf Exp $"); #endif #endif /* not lint */ @@ -58,7 +58,7 @@ __RCSID("$NetBSD: pig.c,v 1.6 1997/10/12 01:00:27 lukem Exp $"); int main __P((int, char *[])); void pigout __P((char *, int)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/games/primes/primes.c b/games/primes/primes.c index 3c1a18ca87bd..ea6f01172f9b 100644 --- a/games/primes/primes.c +++ b/games/primes/primes.c @@ -1,4 +1,4 @@ -/* $NetBSD: primes.c,v 1.7 1997/10/12 01:04:55 lukem Exp $ */ +/* $NetBSD: primes.c,v 1.8 1998/09/13 15:27:29 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)primes.c 8.5 (Berkeley) 5/10/95"; #else -__RCSID("$NetBSD: primes.c,v 1.7 1997/10/12 01:04:55 lukem Exp $"); +__RCSID("$NetBSD: primes.c,v 1.8 1998/09/13 15:27:29 hubertf Exp $"); #endif #endif /* not lint */ @@ -110,7 +110,7 @@ extern int pattern_size; /* length of pattern array */ int main __P((int, char *[])); void primes __P((ubig, ubig)); ubig read_num_buf __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/games/quiz/quiz.c b/games/quiz/quiz.c index a2463b125236..e9026ba522b3 100644 --- a/games/quiz/quiz.c +++ b/games/quiz/quiz.c @@ -1,4 +1,4 @@ -/* $NetBSD: quiz.c,v 1.12 1997/09/20 14:28:18 lukem Exp $ */ +/* $NetBSD: quiz.c,v 1.13 1998/09/13 15:27:29 hubertf Exp $ */ /*- * Copyright (c) 1991, 1993 @@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\ #if 0 static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95"; #else -__RCSID("$NetBSD: quiz.c,v 1.12 1997/09/20 14:28:18 lukem Exp $"); +__RCSID("$NetBSD: quiz.c,v 1.13 1998/09/13 15:27:29 hubertf Exp $"); #endif #endif /* not lint */ @@ -78,7 +78,7 @@ char *next_cat __P((char *)); void quiz __P((void)); void score __P((u_int, u_int, u_int)); void show_index __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); int main(argc, argv) diff --git a/games/robots/robots.h b/games/robots/robots.h index ec4873753870..b572ec8782b0 100644 --- a/games/robots/robots.h +++ b/games/robots/robots.h @@ -1,4 +1,4 @@ -/* $NetBSD: robots.h,v 1.7 1997/10/12 14:16:28 lukem Exp $ */ +/* $NetBSD: robots.h,v 1.8 1998/09/13 15:27:29 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -131,7 +131,7 @@ void move_robots __P((int)); bool must_telep __P((void)); void play_level __P((void)); int query __P((char *)); -void quit __P((int)); +void quit __P((int)) __attribute__((__noreturn__)); void reset_count __P((void)); int rnd __P((int)); COORD *rnd_pos __P((void)); diff --git a/games/rogue/rogue.h b/games/rogue/rogue.h index 7a793b513202..28acbf7b629b 100644 --- a/games/rogue/rogue.h +++ b/games/rogue/rogue.h @@ -1,4 +1,4 @@ -/* $NetBSD: rogue.h,v 1.6 1998/07/27 01:12:36 mycroft Exp $ */ +/* $NetBSD: rogue.h,v 1.7 1998/09/13 15:27:30 hubertf Exp $ */ /* * Copyright (c) 1988, 1993 @@ -491,7 +491,7 @@ boolean check_hunger __P((boolean)); boolean check_imitator __P((object *)); void check_message __P((void)); int check_up __P((void)); -void clean_up __P((char *)); +void clean_up __P((char *)) __attribute__((__noreturn__)); void clear_level __P((void)); void cnfs __P((void)); int coin_toss __P((void)); @@ -517,7 +517,7 @@ void drop_level __P((void)); void eat __P((void)); void edit_opts __P((void)); void env_get_value __P((char **, char *, boolean)); -void error_save __P((int)); +void error_save __P((int)) __attribute__((__noreturn__)); void fight __P((int)); void fill_it __P((int, boolean)); void fill_out_level __P((void)); @@ -601,7 +601,7 @@ boolean mask_pack __P((object *, unsigned short)); boolean mask_room __P((short, short *, short *, unsigned short)); void md_cbreak_no_echo_nonl __P((boolean)); boolean md_df __P((char *)); -void md_exit __P((int)); +void md_exit __P((int)) __attribute__((__noreturn__)); void md_gct __P((struct rogue_time *)); char *md_gdtcf __P((void)); int md_get_file_id __P((char *)); @@ -663,7 +663,7 @@ void put_mons __P((void)); void put_objects __P((void)); void put_on_ring __P((void)); void put_player __P((short)); -void put_scores __P((object *, short)); +void put_scores __P((object *, short)) __attribute__((__noreturn__)); void put_stairs __P((void)); void quaff __P((void)); void quit __P((boolean)); @@ -703,7 +703,7 @@ void save_screen __P((void)); void search __P((short, boolean)); boolean seek_gold __P((object *)); void sell_pack __P((void)); -void sf_error __P((void)); +void sf_error __P((void)) __attribute__((__noreturn__)); void show_average_hp __P((void)); void show_monsters __P((void)); void show_objects __P((void)); diff --git a/games/sail/extern.h b/games/sail/extern.h index c35ea7c89126..935ec48cc4aa 100644 --- a/games/sail/extern.h +++ b/games/sail/extern.h @@ -1,4 +1,4 @@ -/* $NetBSD: extern.h,v 1.7 1998/07/25 10:52:14 hubertf Exp $ */ +/* $NetBSD: extern.h,v 1.8 1998/09/13 15:27:30 hubertf Exp $ */ /* * Copyright (c) 1983, 1993 @@ -367,8 +367,8 @@ int boarding __P((struct ship *, int)); void unboard __P((struct ship *, struct ship *, int)); /* pl_1.c */ -void leave __P((int)); -void choke __P((int)); +void leave __P((int)) __attribute__((__noreturn__)); +void choke __P((int)) __attribute__((__noreturn__)); void child __P((int)); /* pl_2.c */ diff --git a/games/snake/snake/snake.h b/games/snake/snake/snake.h index 64337ea53e3e..d2ea8f178d39 100644 --- a/games/snake/snake/snake.h +++ b/games/snake/snake/snake.h @@ -1,4 +1,4 @@ -/* $NetBSD: snake.h,v 1.9 1997/10/14 01:02:53 lukem Exp $ */ +/* $NetBSD: snake.h,v 1.10 1998/09/13 15:27:30 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -89,7 +89,7 @@ void clear __P((void)); void cook __P((void)); void cr __P((void)); void delay __P((int)); -void done __P((void)); +void done __P((void)) __attribute__((__noreturn__)); void down __P((void)); void drawbox __P((void)); void flushi __P((void)); @@ -118,7 +118,7 @@ void snap __P((void)); void snap __P((void)); void snrand __P((struct point *)); void spacewarp __P((int)); -void stop __P((int)); +void stop __P((int)) __attribute__((__noreturn__)); int stretch __P((struct point *)); int stretch __P((struct point *)); void surround __P((struct point *)); diff --git a/games/tetris/tetris.c b/games/tetris/tetris.c index 0b08ddabfd6c..b2f0006c6fad 100644 --- a/games/tetris/tetris.c +++ b/games/tetris/tetris.c @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.c,v 1.4 1998/08/10 02:25:45 perry Exp $ */ +/* $NetBSD: tetris.c,v 1.5 1998/09/13 15:27:30 hubertf Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -64,8 +64,8 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\ static void elide __P((void)); static void setup_board __P((void)); int main __P((int, char **)); - void onintr __P((int)); - void usage __P((void)); + void onintr __P((int)) __attribute__((__noreturn__)); + void usage __P((void)) __attribute__((__noreturn__)); /* * Set up the initial board. The bottom display row is completely set, diff --git a/games/tetris/tetris.h b/games/tetris/tetris.h index 90e9c5d59d3c..0aa410566c1c 100644 --- a/games/tetris/tetris.h +++ b/games/tetris/tetris.h @@ -1,4 +1,4 @@ -/* $NetBSD: tetris.h,v 1.2 1995/04/22 07:42:48 cgd Exp $ */ +/* $NetBSD: tetris.h,v 1.3 1998/09/13 15:27:30 hubertf Exp $ */ /*- * Copyright (c) 1992, 1993 @@ -168,4 +168,4 @@ char key_msg[100]; int fits_in __P((struct shape *, int)); void place __P((struct shape *, int, int)); -void stop __P((char *)); +void stop __P((char *)) __attribute__((__noreturn__)); diff --git a/games/worm/worm.c b/games/worm/worm.c index 0a7b96ef5eed..57e0f2dc4048 100644 --- a/games/worm/worm.c +++ b/games/worm/worm.c @@ -1,4 +1,4 @@ -/* $NetBSD: worm.c,v 1.8 1997/10/12 02:12:48 lukem Exp $ */ +/* $NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worm.c,v 1.8 1997/10/12 02:12:48 lukem Exp $"); +__RCSID("$NetBSD: worm.c,v 1.9 1998/09/13 15:27:30 hubertf Exp $"); #endif #endif /* not lint */ @@ -82,10 +82,10 @@ int start_len = LENGTH; char lastch; char outbuf[BUFSIZ]; -void crash __P((void)); +void crash __P((void)) __attribute__((__noreturn__)); void display __P((struct body *, char)); int main __P((int, char **)); -void leave __P((int)); +void leave __P((int)) __attribute__((__noreturn__)); void life __P((void)); void newpos __P((struct body *)); void process __P((char)); diff --git a/games/worms/worms.c b/games/worms/worms.c index b0731afd6c2c..9452986f4460 100644 --- a/games/worms/worms.c +++ b/games/worms/worms.c @@ -1,4 +1,4 @@ -/* $NetBSD: worms.c,v 1.9 1997/10/12 02:18:25 lukem Exp $ */ +/* $NetBSD: worms.c,v 1.10 1998/09/13 15:27:31 hubertf Exp $ */ /* * Copyright (c) 1980, 1993 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worms.c,v 1.9 1997/10/12 02:18:25 lukem Exp $"); +__RCSID("$NetBSD: worms.c,v 1.10 1998/09/13 15:27:31 hubertf Exp $"); #endif #endif /* not lint */ @@ -185,8 +185,8 @@ static struct worm { void fputchar __P((int)); int main __P((int, char **)); -void nomem __P((void)); -void onsig __P((int)); +void nomem __P((void)) __attribute__((__noreturn__)); +void onsig __P((int)) __attribute__((__noreturn__)); int tgetent __P((char *, char *)); int tgetflag __P((char *)); int tgetnum __P((char *)); diff --git a/games/wump/wump.c b/games/wump/wump.c index bcffa5eb43c9..5debc5174394 100644 --- a/games/wump/wump.c +++ b/games/wump/wump.c @@ -1,4 +1,4 @@ -/* $NetBSD: wump.c,v 1.6 1998/08/30 09:19:41 veego Exp $ */ +/* $NetBSD: wump.c,v 1.7 1998/09/13 15:27:31 hubertf Exp $ */ /* * Copyright (c) 1989, 1993 @@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: wump.c,v 1.6 1998/08/30 09:19:41 veego Exp $"); +__RCSID("$NetBSD: wump.c,v 1.7 1998/09/13 15:27:31 hubertf Exp $"); #endif #endif /* not lint */ @@ -133,7 +133,7 @@ void pit_survive __P((void)); int shoot __P((char *)); void shoot_self __P((void)); int take_action __P((void)); -void usage __P((void)); +void usage __P((void)) __attribute__((__noreturn__)); void wump_kill __P((void)); int wump_nearby __P((void));