summaryrefslogtreecommitdiffstats
path: root/hack
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 /hack
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 'hack')
-rw-r--r--hack/hack.apply.c10
-rw-r--r--hack/hack.end.c8
-rw-r--r--hack/hack.pager.c6
-rw-r--r--hack/hack.rip.c6
-rw-r--r--hack/hack.save.c6
5 files changed, 18 insertions, 18 deletions
diff --git a/hack/hack.apply.c b/hack/hack.apply.c
index 391cbf41..6c119503 100644
--- a/hack/hack.apply.c
+++ b/hack/hack.apply.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.apply.c,v 1.8 2004/01/27 20:30:29 jsm Exp $ */
+/* $NetBSD: hack.apply.c,v 1.9 2007/12/15 19:44:41 perry Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.apply.c,v 1.8 2004/01/27 20:30:29 jsm Exp $");
+__RCSID("$NetBSD: hack.apply.c,v 1.9 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
#include "hack.h"
@@ -137,7 +137,7 @@ xit:
/* ARGSUSED */
static void
use_camera(obj) /* */
- struct obj *obj __attribute__((__unused__));
+ struct obj *obj __unused;
{
struct monst *mtmp;
if (!getdir(1)) { /* ask: in what direction? */
@@ -303,7 +303,7 @@ bchit(ddx, ddy, range, sym)
/* ARGSUSED */
static void
use_whistle(obj)
- struct obj *obj __attribute__((__unused__));
+ struct obj *obj __unused;
{
struct monst *mtmp = fmon;
pline("You produce a high whistling sound.");
@@ -321,7 +321,7 @@ use_whistle(obj)
/* ARGSUSED */
static void
use_magic_whistle(obj)
- struct obj *obj __attribute__((__unused__));
+ struct obj *obj __unused;
{
struct monst *mtmp = fmon;
pline("You produce a strange whistling sound.");
diff --git a/hack/hack.end.c b/hack/hack.end.c
index 51378bf9..0b8a44bc 100644
--- a/hack/hack.end.c
+++ b/hack/hack.end.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.end.c,v 1.7 2006/05/13 22:45:11 christos Exp $ */
+/* $NetBSD: hack.end.c,v 1.8 2007/12/15 19:44:41 perry Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.end.c,v 1.7 2006/05/13 22:45:11 christos Exp $");
+__RCSID("$NetBSD: hack.end.c,v 1.8 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
#include <signal.h>
@@ -86,7 +86,7 @@ dodone()
/*ARGSUSED*/
void
done1(n)
- int n __attribute__((__unused__));
+ int n __unused;
{
(void) signal(SIGINT, SIG_IGN);
pline("Really quit?");
@@ -108,7 +108,7 @@ int done_hup;
/*ARGSUSED*/
void
done_intr(n)
- int n __attribute__((__unused__));
+ int n __unused;
{
done_stopprint++;
(void) signal(SIGINT, SIG_IGN);
diff --git a/hack/hack.pager.c b/hack/hack.pager.c
index 19063908..b52a6471 100644
--- a/hack/hack.pager.c
+++ b/hack/hack.pager.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.pager.c,v 1.10 2006/04/24 20:08:54 christos Exp $ */
+/* $NetBSD: hack.pager.c,v 1.11 2007/12/15 19:44:41 perry Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.pager.c,v 1.10 2006/04/24 20:08:54 christos Exp $");
+__RCSID("$NetBSD: hack.pager.c,v 1.11 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
/* This file contains the command routine dowhatis() and a pager. */
@@ -131,7 +131,7 @@ static int got_intrup;
void
intruph(n)
- int n __attribute__((__unused__));
+ int n __unused;
{
got_intrup++;
}
diff --git a/hack/hack.rip.c b/hack/hack.rip.c
index a29a3ea0..9e2ffb79 100644
--- a/hack/hack.rip.c
+++ b/hack/hack.rip.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.rip.c,v 1.7 2003/04/02 18:36:39 jsm Exp $ */
+/* $NetBSD: hack.rip.c,v 1.8 2007/12/15 19:44:41 perry Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.rip.c,v 1.7 2003/04/02 18:36:39 jsm Exp $");
+__RCSID("$NetBSD: hack.rip.c,v 1.8 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
#include "hack.h"
@@ -126,7 +126,7 @@ outrip()
void
center(line, text)
- int line __attribute__((__unused__));
+ int line __unused;
char *text;
{
int n = strlen(text) / 2;
diff --git a/hack/hack.save.c b/hack/hack.save.c
index fe116bcb..75e5f759 100644
--- a/hack/hack.save.c
+++ b/hack/hack.save.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.save.c,v 1.8 2003/04/02 18:36:40 jsm Exp $ */
+/* $NetBSD: hack.save.c,v 1.9 2007/12/15 19:44:41 perry Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.save.c,v 1.8 2003/04/02 18:36:40 jsm Exp $");
+__RCSID("$NetBSD: hack.save.c,v 1.9 2007/12/15 19:44:41 perry Exp $");
#endif /* not lint */
#include <signal.h>
@@ -87,7 +87,7 @@ dosave()
#ifndef NOSAVEONHANGUP
void
hangup(n)
- int n __attribute__((__unused__));
+ int n __unused;
{
(void) dosave0(1);
exit(1);