the games.
This merges in all such remaining changes from the Linux port of the
NetBSD games, except in hunt (where substantial changes from OpenBSD
need to be looked at).
Most noreturn attributes were previously added in bin/6144, with some
others that were missed then in bin/8082. Previous `unused'
attributes were covered in bin/6557, bin/8058 and other PRs (all these
PRs have already been handled and closed).
-/* $NetBSD: subs.c,v 1.11 1999/07/26 20:50:44 hubertf Exp $ */
+/* $NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: subs.c,v 1.11 1999/07/26 20:50:44 hubertf Exp $");
+__RCSID("$NetBSD: subs.c,v 1.12 1999/09/08 21:45:25 jsm Exp $");
#endif
#endif /* not lint */
void
getout(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
/* go to bottom of screen */
if (tflag) {
-/* $NetBSD: com6.c,v 1.11 1999/07/21 03:56:53 hubertf Exp $ */
+/* $NetBSD: com6.c,v 1.12 1999/09/08 21:45:25 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com6.c,v 1.11 1999/07/21 03:56:53 hubertf Exp $");
+__RCSID("$NetBSD: com6.c,v 1.12 1999/09/08 21:45:25 jsm Exp $");
#endif
#endif /* not lint */
void
diesig(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
die();
}
-/* $NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $ */
+/* $NetBSD: fly.c,v 1.8 1999/09/08 21:45:25 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: fly.c,v 1.7 1999/04/18 03:30:12 simonb Exp $");
+__RCSID("$NetBSD: fly.c,v 1.8 1999/09/08 21:45:25 jsm Exp $");
#endif
#endif /* not lint */
void
succumb(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
if (oldsig == SIG_DFL) {
endfly();
void
moveenemy(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
double d;
int oldr, oldc;
-/* $NetBSD: mach.c,v 1.9 1999/09/08 21:17:44 jsm Exp $ */
+/* $NetBSD: mach.c,v 1.10 1999/09/08 21:45:26 jsm Exp $ */
/*-
* Copyright (c) 1993
#if 0
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
#else
-__RCSID("$NetBSD: mach.c,v 1.9 1999/09/08 21:17:44 jsm Exp $");
+__RCSID("$NetBSD: mach.c,v 1.10 1999/09/08 21:45:26 jsm Exp $");
#endif
#endif /* not lint */
static void
stop_catcher(signo)
- int signo;
+ int signo __attribute__((__unused__));
{
sigset_t sigset, osigset;
static void
cont_catcher(signo)
- int signo;
+ int signo __attribute__((__unused__));
{
noecho();
raw();
*/
static void
winch_catcher(signo)
- int signo;
+ int signo __attribute__((__unused__));
{
struct winsize win;
-/* $NetBSD: canfield.c,v 1.12 1999/09/08 21:17:46 jsm Exp $ */
+/* $NetBSD: canfield.c,v 1.13 1999/09/08 21:45:26 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: canfield.c,v 1.12 1999/09/08 21:17:46 jsm Exp $");
+__RCSID("$NetBSD: canfield.c,v 1.13 1999/09/08 21:45:26 jsm Exp $");
#endif
#endif /* not lint */
*/
void
cleanup(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
total.thinktime += 1;
*/
void
askquit(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
move(msgrow, msgcol);
printw("Really wish to quit? ");
-/* $NetBSD: io.c,v 1.11 1999/09/08 21:17:47 jsm Exp $ */
+/* $NetBSD: io.c,v 1.12 1999/09/08 21:45:26 jsm Exp $ */
/*-
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: io.c,v 1.11 1999/09/08 21:17:47 jsm Exp $");
+__RCSID("$NetBSD: io.c,v 1.12 1999/09/08 21:45:26 jsm Exp $");
#endif
#endif /* not lint */
void
rint(signo)
- int signo;
+ int signo __attribute__((__unused__));
{
bye();
exit(1);
-/* $NetBSD: score.c,v 1.7 1999/09/08 21:17:47 jsm Exp $ */
+/* $NetBSD: score.c,v 1.8 1999/09/08 21:45:26 jsm Exp $ */
/*-
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.7 1999/09/08 21:17:47 jsm Exp $");
+__RCSID("$NetBSD: score.c,v 1.8 1999/09/08 21:45:26 jsm Exp $");
#endif
#endif /* not lint */
int
adjust(cb, tnv)
const CARD cb[];
- CARD tnv;
+ CARD tnv __attribute__((__unused__));
{
long scr;
int i, c0, c1;
-/* $NetBSD: fortune.c,v 1.16 1999/09/08 21:17:48 jsm Exp $ */
+/* $NetBSD: fortune.c,v 1.17 1999/09/08 21:45:27 jsm Exp $ */
/*-
* Copyright (c) 1986, 1993
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.16 1999/09/08 21:17:48 jsm Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.17 1999/09/08 21:45:27 jsm Exp $");
#endif
#endif /* not lint */
int
is_fortfile(file, datp, posp, check_for_offend)
const char *file;
- char **datp, **posp;
+ char **datp, **posp
+# ifndef OK_TO_WRITE_DISK
+ __attribute__((__unused__))
+# endif
+ ;
int check_for_offend;
{
int i;
-/* $NetBSD: main.c,v 1.6 1999/09/08 21:17:49 jsm Exp $ */
+/* $NetBSD: main.c,v 1.7 1999/09/08 21:45:27 jsm Exp $ */
/*
* Copyright (c) 1994
#if 0
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: main.c,v 1.6 1999/09/08 21:17:49 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.7 1999/09/08 21:45:27 jsm Exp $");
#endif
#endif /* not lint */
void
quitsig(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
quit();
}
-/* $NetBSD: pickmove.c,v 1.6 1999/09/08 21:17:49 jsm Exp $ */
+/* $NetBSD: pickmove.c,v 1.7 1999/09/08 21:45:27 jsm Exp $ */
/*
* Copyright (c) 1994
#if 0
static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
#else
-__RCSID("$NetBSD: pickmove.c,v 1.6 1999/09/08 21:17:49 jsm Exp $");
+__RCSID("$NetBSD: pickmove.c,v 1.7 1999/09/08 21:45:27 jsm Exp $");
#endif
#endif /* not lint */
void
appendcombo(cbp, color)
struct combostr *cbp;
- int color;
+ int color __attribute__((__unused__));
{
struct combostr *pcbp, *ncbp;
-/* $NetBSD: hangman.h,v 1.8 1999/09/08 21:17:50 jsm Exp $ */
+/* $NetBSD: hangman.h,v 1.9 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
extern off_t Dict_size;
-void die __P((int));
+void die __P((int)) __attribute__((__noreturn__));
void endgame __P((void));
int main __P((void));
void getguess __P((void));
-/* $NetBSD: main.c,v 1.5 1998/09/11 13:42:03 hubertf Exp $ */
+/* $NetBSD: main.c,v 1.6 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.5 1998/09/11 13:42:03 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.6 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
*/
void
die(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
mvcur(0, COLS - 1, LINES - 1, 0);
endwin();
-/* $NetBSD: mille.c,v 1.7 1999/03/29 05:12:39 mrg Exp $ */
+/* $NetBSD: mille.c,v 1.8 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1982, 1993
#if 0
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: mille.c,v 1.7 1999/03/29 05:12:39 mrg Exp $");
+__RCSID("$NetBSD: mille.c,v 1.8 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
*/
void
rub(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
(void)signal(SIGINT, SIG_IGN);
if (getyn(REALLYPROMPT))
-/* $NetBSD: print.c,v 1.7 1999/09/08 21:17:51 jsm Exp $ */
+/* $NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1982, 1993
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: print.c,v 1.7 1999/09/08 21:17:51 jsm Exp $");
+__RCSID("$NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
void
prscore(for_real)
- bool for_real;
+#ifdef EXTRAP
+ bool for_real;
+#else
+ bool for_real __attribute__((__unused__));
+#endif
{
PLAY *pp;
int x;
-/* $NetBSD: monop.c,v 1.6 1999/08/21 10:40:03 simonb Exp $ */
+/* $NetBSD: monop.c,v 1.7 1999/09/08 21:45:28 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: monop.c,v 1.6 1999/08/21 10:40:03 simonb Exp $");
+__RCSID("$NetBSD: monop.c,v 1.7 1999/09/08 21:45:28 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
static void
do_quit(n)
- int n;
+ int n __attribute__((__unused__));
{
quit();
}
-/* $NetBSD: io.c,v 1.4 1999/09/08 21:17:54 jsm Exp $ */
+/* $NetBSD: io.c,v 1.5 1999/09/08 21:45:29 jsm Exp $ */
/*
* io.c - input/output routines for Phantasia
void
catchalarm(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
longjmp(Timeoenv, 1);
}
-/* $NetBSD: phantglobs.h,v 1.6 1999/09/08 21:17:54 jsm Exp $ */
+/* $NetBSD: phantglobs.h,v 1.7 1999/09/08 21:45:29 jsm Exp $ */
/*
* phantglobs.h - global declarations for Phantasia
void battleplayer __P((long));
void callmonster __P((int));
void cancelmonster __P((void));
-void catchalarm __P((int));
+void catchalarm __P((int)) __attribute__((__noreturn__));
void changestats __P((bool));
void checkbattle __P((void));
void checktampered __P((void));
-/* $NetBSD: random.c,v 1.5 1997/10/12 01:14:22 lukem Exp $ */
+/* $NetBSD: random.c,v 1.6 1999/09/08 21:45:29 jsm Exp $ */
/*
* Copyright (c) 1994
#if 0
static char sccsid[] = "@(#)random.c 8.6 (Berkeley) 6/1/94";
#else
-__RCSID("$NetBSD: random.c,v 1.5 1997/10/12 01:14:22 lukem Exp $");
+__RCSID("$NetBSD: random.c,v 1.6 1999/09/08 21:45:29 jsm Exp $");
#endif
#endif /* not lint */
#include <limits.h>
int main __P((int, char **));
-void usage __P((void));
+void usage __P((void)) __attribute__((__noreturn__));
int
main(argc, argv)
-/* $NetBSD: main.c,v 1.9 1999/09/08 21:17:57 jsm Exp $ */
+/* $NetBSD: main.c,v 1.10 1999/09/08 21:45:29 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: main.c,v 1.9 1999/09/08 21:17:57 jsm Exp $");
+__RCSID("$NetBSD: main.c,v 1.10 1999/09/08 21:45:29 jsm Exp $");
#endif
#endif /* not lint */
*/
void
quit(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
endwin();
exit(0);
-/* $NetBSD: init.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $ */
+/* $NetBSD: init.c,v 1.8 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1988, 1993
#if 0
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: init.c,v 1.7 1998/11/10 13:01:32 hubertf Exp $");
+__RCSID("$NetBSD: init.c,v 1.8 1999/09/08 21:45:30 jsm Exp $");
#endif
#endif /* not lint */
void
byebye(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
md_ignore_signals();
if (ask_quit) {
void
onintr(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
md_ignore_signals();
if (cant_int) {
void
error_save(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
save_is_interactive = 0;
save_into_file(error_file);
-/* $NetBSD: rogue.h,v 1.8 1998/11/10 13:01:32 hubertf Exp $ */
+/* $NetBSD: rogue.h,v 1.9 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1988, 1993
boolean is_passable __P((int, int));
boolean is_vowel __P((short));
void kick_into_pack __P((void));
-void killed_by __P((const object *, short));
+void killed_by __P((const object *, short)) __attribute__((__noreturn__));
long lget_number __P((const char *));
void light_passage __P((int, int));
void light_up_room __P((int));
void wdrain_life __P((object *));
void wear __P((void));
void wield __P((void));
-void win __P((void));
+void win __P((void)) __attribute__((__noreturn__));
void wizardize __P((void));
void write_pack __P((const object *, FILE *));
void write_string __P((char *, FILE *));
-/* $NetBSD: extern.h,v 1.10 1999/09/08 21:17:58 jsm Exp $ */
+/* $NetBSD: extern.h,v 1.11 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
void child __P((int));
/* pl_2.c */
-void play __P((void));
+void play __P((void)) __attribute__((__noreturn__));
/* pl_3.c */
void acceptcombat __P((void));
-/* $NetBSD: pl_1.c,v 1.6 1999/02/10 00:45:46 hubertf Exp $ */
+/* $NetBSD: pl_1.c,v 1.7 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_1.c,v 1.6 1999/02/10 00:45:46 hubertf Exp $");
+__RCSID("$NetBSD: pl_1.c,v 1.7 1999/09/08 21:45:30 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
choke(n)
- int n;
+ int n __attribute__((__unused__));
{
leave(LEAVE_QUIT);
}
/*ARGSUSED*/
void
child(n)
- int n;
+ int n __attribute__((__unused__));
{
union wait status;
int pid;
-/* $NetBSD: pl_7.c,v 1.11 1999/09/08 21:17:59 jsm Exp $ */
+/* $NetBSD: pl_7.c,v 1.12 1999/09/08 21:45:30 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
#if 0
static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_7.c,v 1.11 1999/09/08 21:17:59 jsm Exp $");
+__RCSID("$NetBSD: pl_7.c,v 1.12 1999/09/08 21:45:30 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
newturn(n)
- int n;
+ int n __attribute__((__unused__));
{
repaired = loaded = fired = changed = 0;
movebuf[0] = '\0';
-/* $NetBSD: snake.c,v 1.10 1999/09/08 21:17:59 jsm Exp $ */
+/* $NetBSD: snake.c,v 1.11 1999/09/08 21:45:31 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
#else
-__RCSID("$NetBSD: snake.c,v 1.10 1999/09/08 21:17:59 jsm Exp $");
+__RCSID("$NetBSD: snake.c,v 1.11 1999/09/08 21:45:31 jsm Exp $");
#endif
#endif /* not lint */
void
stop(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
signal(SIGINT, SIG_IGN);
ll();
-/* $NetBSD: snake.h,v 1.12 1999/09/08 21:18:00 jsm Exp $ */
+/* $NetBSD: snake.h,v 1.13 1999/09/08 21:45:31 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
void length __P((int));
void ll __P((void));
void logit __P((const char *));
-void mainloop __P((void));
+void mainloop __P((void)) __attribute__((__noreturn__));
void move __P((struct point *));
void nd __P((void));
void outch __P((int));
-/* $NetBSD: screen.c,v 1.11 1999/09/08 21:18:00 jsm Exp $ */
+/* $NetBSD: screen.c,v 1.12 1999/09/08 21:45:31 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
static void (*tstp) __P((int));
static void scr_stop __P((int));
-static void stopset __P((int));
+static void stopset __P((int)) __attribute__((__noreturn__));
/*
-/* $NetBSD: tetris.c,v 1.10 1999/09/08 21:18:01 jsm Exp $ */
+/* $NetBSD: tetris.c,v 1.11 1999/09/08 21:45:31 jsm Exp $ */
/*-
* Copyright (c) 1992, 1993
void
onintr(signo)
- int signo;
+ int signo __attribute__((__unused__));
{
scr_clear();
scr_end();
-/* $NetBSD: abandon.c,v 1.4 1997/10/12 21:24:25 christos Exp $ */
+/* $NetBSD: abandon.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)abandon.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: abandon.c,v 1.4 1997/10/12 21:24:25 christos Exp $");
+__RCSID("$NetBSD: abandon.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
abandon(v)
- int v;
+ int v __attribute__((__unused__));
{
struct quad *q;
int i;
-/* $NetBSD: capture.c,v 1.4 1997/10/12 21:24:29 christos Exp $ */
+/* $NetBSD: capture.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)capture.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: capture.c,v 1.4 1997/10/12 21:24:29 christos Exp $");
+__RCSID("$NetBSD: capture.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
capture(v)
- int v;
+ int v __attribute__((__unused__));
{
int i;
struct kling *k;
-/* $NetBSD: cgetc.c,v 1.4 1997/10/12 21:24:30 christos Exp $ */
+/* $NetBSD: cgetc.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)cgetc.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: cgetc.c,v 1.4 1997/10/12 21:24:30 christos Exp $");
+__RCSID("$NetBSD: cgetc.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
# include "trek.h"
char cgetc(i)
-int i;
+int i __attribute__((__unused__));
{
return ( getchar() );
}
-/* $NetBSD: computer.c,v 1.6 1999/07/21 13:19:10 hubertf Exp $ */
+/* $NetBSD: computer.c,v 1.7 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)computer.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: computer.c,v 1.6 1999/07/21 13:19:10 hubertf Exp $");
+__RCSID("$NetBSD: computer.c,v 1.7 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
computer(v)
- int v;
+ int v __attribute__((__unused__));
{
int ix, iy;
int i, j;
-/* $NetBSD: dcrept.c,v 1.4 1997/10/12 21:24:38 christos Exp $ */
+/* $NetBSD: dcrept.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)dcrept.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dcrept.c,v 1.4 1997/10/12 21:24:38 christos Exp $");
+__RCSID("$NetBSD: dcrept.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
dcrept(v)
- int v;
+ int v __attribute__((__unused__));
{
int i, f;
double x;
-/* $NetBSD: destruct.c,v 1.4 1997/10/12 21:24:40 christos Exp $ */
+/* $NetBSD: destruct.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)destruct.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: destruct.c,v 1.4 1997/10/12 21:24:40 christos Exp $");
+__RCSID("$NetBSD: destruct.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
destruct(v)
- int v;
+ int v __attribute__((__unused__));
{
char checkpass[15];
int i, j;
-/* $NetBSD: dock.c,v 1.4 1997/10/12 21:24:41 christos Exp $ */
+/* $NetBSD: dock.c,v 1.5 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)dock.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dock.c,v 1.4 1997/10/12 21:24:41 christos Exp $");
+__RCSID("$NetBSD: dock.c,v 1.5 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
dock(v)
- int v;
+ int v __attribute__((__unused__));
{
int i, j;
int ok;
/*ARGSUSED*/
void
undock(v)
- int v;
+ int v __attribute__((__unused__));
{
struct event *e;
int i;
-/* $NetBSD: dumpgame.c,v 1.6 1998/09/11 14:26:19 hubertf Exp $ */
+/* $NetBSD: dumpgame.c,v 1.7 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)dumpgame.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dumpgame.c,v 1.6 1998/09/11 14:26:19 hubertf Exp $");
+__RCSID("$NetBSD: dumpgame.c,v 1.7 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
dumpgame(v)
- int v;
+ int v __attribute__((__unused__));
{
int version;
int fd;
-/* $NetBSD: help.c,v 1.5 1999/07/21 13:19:10 hubertf Exp $ */
+/* $NetBSD: help.c,v 1.6 1999/09/08 21:45:32 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: help.c,v 1.5 1999/07/21 13:19:10 hubertf Exp $");
+__RCSID("$NetBSD: help.c,v 1.6 1999/09/08 21:45:32 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
help(v)
- int v;
+ int v __attribute__((__unused__));
{
int i;
double dist, x;
-/* $NetBSD: impulse.c,v 1.4 1997/10/12 21:24:54 christos Exp $ */
+/* $NetBSD: impulse.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)impulse.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: impulse.c,v 1.4 1997/10/12 21:24:54 christos Exp $");
+__RCSID("$NetBSD: impulse.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
impulse(v)
- int v;
+ int v __attribute__((__unused__));
{
int course;
int power;
-/* $NetBSD: lrscan.c,v 1.4 1997/10/12 21:24:59 christos Exp $ */
+/* $NetBSD: lrscan.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)lrscan.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: lrscan.c,v 1.4 1997/10/12 21:24:59 christos Exp $");
+__RCSID("$NetBSD: lrscan.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
lrscan(v)
- int v;
+ int v __attribute__((__unused__));
{
int i, j;
struct quad *q;
-/* $NetBSD: phaser.c,v 1.6 1999/07/21 13:19:11 hubertf Exp $ */
+/* $NetBSD: phaser.c,v 1.7 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: phaser.c,v 1.6 1999/07/21 13:19:11 hubertf Exp $");
+__RCSID("$NetBSD: phaser.c,v 1.7 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
phaser(v)
- int v;
+ int v __attribute__((__unused__));
{
int i;
int j;
-/* $NetBSD: play.c,v 1.5 1999/07/21 13:19:11 hubertf Exp $ */
+/* $NetBSD: play.c,v 1.6 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)play.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: play.c,v 1.5 1999/07/21 13:19:11 hubertf Exp $");
+__RCSID("$NetBSD: play.c,v 1.6 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
myreset(v)
- int v;
+ int v __attribute__((__unused__));
{
extern jmp_buf env;
-/* $NetBSD: rest.c,v 1.4 1997/10/12 21:25:10 christos Exp $ */
+/* $NetBSD: rest.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)rest.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: rest.c,v 1.4 1997/10/12 21:25:10 christos Exp $");
+__RCSID("$NetBSD: rest.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
rest(v)
- int v;
+ int v __attribute__((__unused__));
{
double t;
int percent;
-/* $NetBSD: setwarp.c,v 1.4 1997/10/12 21:25:16 christos Exp $ */
+/* $NetBSD: setwarp.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)setwarp.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: setwarp.c,v 1.4 1997/10/12 21:25:16 christos Exp $");
+__RCSID("$NetBSD: setwarp.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
setwarp(v)
- int v;
+ int v __attribute__((__unused__));
{
double warpfac;
-/* $NetBSD: torped.c,v 1.4 1997/10/12 21:25:22 christos Exp $ */
+/* $NetBSD: torped.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)torped.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: torped.c,v 1.4 1997/10/12 21:25:22 christos Exp $");
+__RCSID("$NetBSD: torped.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
torped(v)
- int v;
+ int v __attribute__((__unused__));
{
int ix, iy;
double x, y, dx, dy;
-/* $NetBSD: trek.h,v 1.6 1999/07/21 13:19:11 hubertf Exp $ */
+/* $NetBSD: trek.h,v 1.7 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
void klmove __P((int));
/* lose.c */
-void lose __P((int));
+void lose __P((int)) __attribute__((__noreturn__));
/* lrscan.c */
void lrscan __P((int));
void phaser __P((int));
/* play.c */
-void myreset __P((int));
-void play __P((void));
+void myreset __P((int)) __attribute__((__noreturn__));
+void play __P((void)) __attribute__((__noreturn__));
/* ram.c */
void ram __P((int, int ));
void warp __P((int, int, double));
/* win.c */
-void win __P((void));
+void win __P((void)) __attribute__((__noreturn__));
-/* $NetBSD: visual.c,v 1.4 1997/10/12 21:25:26 christos Exp $ */
+/* $NetBSD: visual.c,v 1.5 1999/09/08 21:45:33 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)visual.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: visual.c,v 1.4 1997/10/12 21:25:26 christos Exp $");
+__RCSID("$NetBSD: visual.c,v 1.5 1999/09/08 21:45:33 jsm Exp $");
#endif
#endif /* not lint */
/*ARGSUSED*/
void
visual(z)
- int z;
+ int z __attribute__((__unused__));
{
int ix, iy;
int co;
-/* $NetBSD: worm.c,v 1.13 1999/09/08 21:18:01 jsm Exp $ */
+/* $NetBSD: worm.c,v 1.14 1999/09/08 21:45:34 jsm Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)worm.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: worm.c,v 1.13 1999/09/08 21:18:01 jsm Exp $");
+__RCSID("$NetBSD: worm.c,v 1.14 1999/09/08 21:45:34 jsm Exp $");
#endif
#endif /* not lint */
void
wake(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
signal(SIGALRM, wake);
fflush(stdout);