summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorperry <perry@NetBSD.org>2007-12-15 19:44:37 +0000
committerperry <perry@NetBSD.org>2007-12-15 19:44:37 +0000
commit5b76eed8435d83619f278cc1584ca5751e2804f6 (patch)
tree95b484c27260594d4e5c7b00cdcfd394d46911b1 /hunt
parent1241b50c5ecd257030f9ddd40c9009a0a4c55ee8 (diff)
downloadbsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.tar.gz
bsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.tar.zst
bsdgames-darwin-5b76eed8435d83619f278cc1584ca5751e2804f6.zip
convert __attribute__s to applicable cdefs.h macros
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/hunt.c16
-rw-r--r--hunt/hunt/otto.c6
-rw-r--r--hunt/huntd/faketalk.c6
3 files changed, 14 insertions, 14 deletions
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
index e9dd1408..dc06802f 100644
--- a/hunt/hunt/hunt.c
+++ b/hunt/hunt/hunt.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hunt.c,v 1.24 2006/05/09 20:18:06 mrg Exp $ */
+/* $NetBSD: hunt.c,v 1.25 2007/12/15 19:44:41 perry 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.24 2006/05/09 20:18:06 mrg Exp $");
+__RCSID("$NetBSD: hunt.c,v 1.25 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
# include <sys/param.h>
@@ -111,8 +111,8 @@ extern int cur_row, cur_col;
void dump_scores(SOCKET);
long env_init(long);
void fill_in_blanks(void);
-void leave(int, char *) __attribute__((__noreturn__));
-void leavex(int, char *) __attribute__((__noreturn__));
+void leave(int, char *) __dead;
+void leavex(int, char *) __dead;
void fincurs(void);
int main(int, char *[]);
# ifdef INTERNET
@@ -752,7 +752,7 @@ bad_ver()
*/
SIGNAL_TYPE
sigterm(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
leavex(0, (char *) NULL);
/* NOTREACHED */
@@ -765,7 +765,7 @@ sigterm(dummy)
*/
SIGNAL_TYPE
sigusr1(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
leavex(1, "Unable to start driver. Try again.");
/* NOTREACHED */
@@ -778,7 +778,7 @@ sigusr1(dummy)
*/
SIGNAL_TYPE
sigalrm(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
return;
}
@@ -805,7 +805,7 @@ rmnl(s)
*/
SIGNAL_TYPE
intr(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
int ch;
int explained;
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c
index 3c069713..e83d7c86 100644
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.10 2006/03/19 00:00:19 christos Exp $ */
+/* $NetBSD: otto.c,v 1.11 2007/12/15 19:44:41 perry 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.10 2006/03/19 00:00:19 christos Exp $");
+__RCSID("$NetBSD: otto.c,v 1.11 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
# include <sys/time.h>
@@ -156,7 +156,7 @@ extern int Otto_count;
STATIC SIGNAL_TYPE
nothing(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
}
diff --git a/hunt/huntd/faketalk.c b/hunt/huntd/faketalk.c
index 593cb4a0..9489b636 100644
--- a/hunt/huntd/faketalk.c
+++ b/hunt/huntd/faketalk.c
@@ -1,4 +1,4 @@
-/* $NetBSD: faketalk.c,v 1.10 2004/02/08 22:23:50 jsm Exp $ */
+/* $NetBSD: faketalk.c,v 1.11 2007/12/15 19:44:41 perry 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.10 2004/02/08 22:23:50 jsm Exp $");
+__RCSID("$NetBSD: faketalk.c,v 1.11 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
#include "bsd.h"
@@ -74,7 +74,7 @@ SIGNAL_TYPE exorcise(int);
SIGNAL_TYPE
exorcise(dummy)
- int dummy __attribute__((__unused__));
+ int dummy __unused;
{
(void) wait(0);
}