summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2004-02-08 22:23:50 +0000
committerjsm <jsm@NetBSD.org>2004-02-08 22:23:50 +0000
commitc236eb893173d7076ff941420640c9129eb83ce1 (patch)
tree445bd2d2533915f8055805a94c2274f6174619f5 /hunt
parentad21fb31560f9565323f89d2a1468cff25268ae6 (diff)
downloadbsdgames-darwin-c236eb893173d7076ff941420640c9129eb83ce1.tar.gz
bsdgames-darwin-c236eb893173d7076ff941420640c9129eb83ce1.tar.zst
bsdgames-darwin-c236eb893173d7076ff941420640c9129eb83ce1.zip
Mark unused parameters, nonreturning functions and format functions in
the few cases not already marked.
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c12
-rw-r--r--hunt/hunt/otto.c6
-rw-r--r--hunt/huntd/faketalk.c6
-rw-r--r--hunt/huntd/hunt.h12
4 files changed, 18 insertions, 18 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index 15b348dd..898cd019 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.21 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hunt.c,v 1.21 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.22 2004/02/08 22:23:50 jsm Exp $");
#endif /* not lint */
# include <sys/param.h>
@@ -752,7 +752,7 @@ bad_ver()
*/
SIGNAL_TYPE
sigterm(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
leavex(0, (char *) NULL);
/* NOTREACHED */
@@ -765,7 +765,7 @@ sigterm(dummy)
*/
SIGNAL_TYPE
sigusr1(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
leavex(1, "Unable to start driver. Try again.");
/* NOTREACHED */
@@ -778,7 +778,7 @@ sigusr1(dummy)
*/
SIGNAL_TYPE
sigalrm(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
return;
}
@@ -805,7 +805,7 @@ rmnl(s)
*/
SIGNAL_TYPE
intr(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
int ch;
int explained;
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c
index bd6fefb2..3fcaaeed 100644
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.6 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $ */
# ifdef OTTO
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -45,7 +45,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: otto.c,v 1.6 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: otto.c,v 1.7 2004/02/08 22:23:50 jsm Exp $");
#endif /* not lint */
# include <sys/time.h>
@@ -156,7 +156,7 @@ extern int Otto_count;
STATIC SIGNAL_TYPE
nothing(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
}
diff --git a/hunt/huntd/faketalk.c b/hunt/huntd/faketalk.c
index c9237b5a..593cb4a0 100644
--- a/hunt/huntd/faketalk.c
+++ b/hunt/huntd/faketalk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: faketalk.c,v 1.9 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: faketalk.c,v 1.10 2004/02/08 22:23:50 jsm Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
* All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: faketalk.c,v 1.9 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: faketalk.c,v 1.10 2004/02/08 22:23:50 jsm Exp $");
#endif /* not lint */
#include "bsd.h"
@@ -74,7 +74,7 @@ SIGNAL_TYPE exorcise(int);
SIGNAL_TYPE
exorcise(dummy)
- int dummy;
+ int dummy __attribute__((__unused__));
{
(void) wait(0);
}
diff --git a/hunt/huntd/hunt.h b/hunt/huntd/hunt.h
index 10f35af5..0d061d14 100644
--- a/hunt/huntd/hunt.h
+++ b/hunt/huntd/hunt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.h,v 1.10 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: hunt.h,v 1.11 2004/02/08 22:23:50 jsm Exp $ */
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -417,8 +417,8 @@ extern FLAG no_beep;
void add_shot(int, int, int, char, int, PLAYER *, int, char);
int answer(void);
-void bad_con(void);
-void bad_ver(void);
+void bad_con(void) __attribute__((__noreturn__));
+void bad_ver(void) __attribute__((__noreturn__));
int broadcast_vec(int, struct sockaddr **);
void ce(PLAYER *);
void cgoto(PLAYER *, int, int);
@@ -475,7 +475,7 @@ char translate(char);
SIGNAL_TYPE cleanup(int) __attribute__((__noreturn__));
SIGNAL_TYPE intr(int);
SIGNAL_TYPE sigalrm(int);
-SIGNAL_TYPE sigemt(int);
-SIGNAL_TYPE sigterm(int);
-SIGNAL_TYPE sigusr1(int);
+SIGNAL_TYPE sigemt(int) __attribute__((__noreturn__));
+SIGNAL_TYPE sigterm(int) __attribute__((__noreturn__));
+SIGNAL_TYPE sigusr1(int) __attribute__((__noreturn__));
SIGNAL_TYPE tstp(int);