mark non-returning functions (PR#6144 by Joseph Myers <jsm28@cam.ac.uk>)

This commit is contained in:
hubertf 1998-09-13 15:27:25 +00:00
parent 3aca90fd78
commit 1c9494f62b
29 changed files with 89 additions and 89 deletions

View File

@ -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 <unistd.h>
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[] = "+-";

View File

@ -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));

View File

@ -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__));

View File

@ -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));

View File

@ -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 *));

View File

@ -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)

View File

@ -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));

View File

@ -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 []));

View File

@ -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));

View File

@ -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)

View File

@ -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

View File

@ -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

View File

@ -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__));
/*

View File

@ -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));

View File

@ -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 <sys/cdefs.h>
#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 <sys/stat.h>
@ -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));

View File

@ -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));

View File

@ -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 *));

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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));

View File

@ -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));

View File

@ -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 */

View File

@ -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 *));

View File

@ -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,

View File

@ -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__));

View File

@ -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));

View File

@ -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 *));

View File

@ -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));