convert __attribute__s to applicable cdefs.h macros
This commit is contained in:
parent
381f4068ae
commit
8b0f9554ff
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec.c,v 1.26 2007/07/16 18:26:10 christos Exp $ */
|
||||
/* $NetBSD: exec.c,v 1.27 2007/12/15 19:44:37 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1991, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)exec.c 8.3 (Berkeley) 5/23/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: exec.c,v 1.26 2007/07/16 18:26:10 christos Exp $");
|
||||
__RCSID("$NetBSD: exec.c,v 1.27 2007/12/15 19:44:37 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -97,7 +97,7 @@ static int hits, misses;
|
|||
/* Dummy search path for just absolute search when no path */
|
||||
static Char *justabs[] = {STRNULL, 0};
|
||||
|
||||
static void pexerr(void) __attribute__((noreturn));
|
||||
static void pexerr(void) __dead;
|
||||
static void texec(Char *, Char **);
|
||||
static int hashname(Char *);
|
||||
static int tellmewhat(struct wordent *, Char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: error.c,v 1.33 2006/10/04 15:00:38 christos Exp $ */
|
||||
/* $NetBSD: error.c,v 1.34 2007/12/15 19:44:37 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)error.c 8.2 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: error.c,v 1.33 2006/10/04 15:00:38 christos Exp $");
|
||||
__RCSID("$NetBSD: error.c,v 1.34 2007/12/15 19:44:37 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -72,7 +72,7 @@ char *commandname;
|
|||
|
||||
|
||||
static void exverror(int, const char *, va_list)
|
||||
__attribute__((__noreturn__));
|
||||
__dead;
|
||||
|
||||
/*
|
||||
* Called to raise an exception. Since C doesn't include exceptions, we
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: parser.c,v 1.65 2007/06/07 20:57:59 dsl Exp $ */
|
||||
/* $NetBSD: parser.c,v 1.66 2007/12/15 19:44:37 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)parser.c 8.7 (Berkeley) 5/16/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: parser.c,v 1.65 2007/06/07 20:57:59 dsl Exp $");
|
||||
__RCSID("$NetBSD: parser.c,v 1.66 2007/12/15 19:44:37 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -114,8 +114,8 @@ STATIC int readtoken(void);
|
|||
STATIC int xxreadtoken(void);
|
||||
STATIC int readtoken1(int, char const *, char *, int);
|
||||
STATIC int noexpand(char *);
|
||||
STATIC void synexpect(int) __attribute__((__noreturn__));
|
||||
STATIC void synerror(const char *) __attribute__((__noreturn__));
|
||||
STATIC void synexpect(int) __dead;
|
||||
STATIC void synerror(const char *) __dead;
|
||||
STATIC void setprompt(int);
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: test.c,v 1.33 2007/06/24 18:54:58 christos Exp $ */
|
||||
/* $NetBSD: test.c,v 1.34 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*
|
||||
* test(1); version 7-like -- author Erik Baalbergen
|
||||
|
@ -12,7 +12,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: test.c,v 1.33 2007/06/24 18:54:58 christos Exp $");
|
||||
__RCSID("$NetBSD: test.c,v 1.34 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
|
@ -171,10 +171,10 @@ static int olderf(const char *, const char *);
|
|||
static int equalf(const char *, const char *);
|
||||
|
||||
#if defined(SHELL)
|
||||
extern void error(const char *, ...) __attribute__((__noreturn__));
|
||||
extern void error(const char *, ...) __dead;
|
||||
extern void *ckmalloc(size_t);
|
||||
#else
|
||||
static void error(const char *, ...) __attribute__((__noreturn__));
|
||||
static void error(const char *, ...) __dead;
|
||||
|
||||
static void
|
||||
error(const char *msg, ...)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init.c,v 1.16 2006/03/18 05:16:46 rtr Exp $ */
|
||||
/* $NetBSD: init.c,v 1.17 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
|
@ -39,7 +39,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 6/2/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: init.c,v 1.16 2006/03/18 05:16:46 rtr Exp $");
|
||||
__RCSID("$NetBSD: init.c,v 1.17 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -275,7 +275,7 @@ linkdata(void)
|
|||
|
||||
/* come here if he hits a del */
|
||||
void
|
||||
trapdel(int n __attribute__((__unused__)))
|
||||
trapdel(int n __unused)
|
||||
{
|
||||
delhit = 1; /* main checks, treats as QUIT */
|
||||
signal(SIGINT, trapdel);/* catch subsequent DELs */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $ */
|
||||
/* $NetBSD: arithmetic.c,v 1.22 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -42,7 +42,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.21 2004/11/05 21:30:31 dsl Exp $");
|
||||
__RCSID("$NetBSD: arithmetic.c,v 1.22 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -85,13 +85,13 @@ __RCSID("$NetBSD: arithmetic.c,v 1.21 2004/11/05 21:30:31 dsl Exp $");
|
|||
#include <unistd.h>
|
||||
|
||||
int getrandom(int, int, int);
|
||||
void intr(int) __attribute__((__noreturn__));
|
||||
void intr(int) __dead;
|
||||
int main(int, char *[]);
|
||||
int opnum(int);
|
||||
void penalise(int, int, int);
|
||||
int problem(void);
|
||||
void showstats(int);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
const char keylist[] = "+-x/";
|
||||
const char defaultkeys[] = "+-";
|
||||
|
@ -159,7 +159,7 @@ main(argc, argv)
|
|||
/* Handle interrupt character. Print score and exit. */
|
||||
void
|
||||
intr(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
showstats(1);
|
||||
exit(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: graphics.c,v 1.13 2006/06/07 09:22:52 jnemeth Exp $ */
|
||||
/* $NetBSD: graphics.c,v 1.14 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -46,7 +46,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)graphics.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: graphics.c,v 1.13 2006/06/07 09:22:52 jnemeth Exp $");
|
||||
__RCSID("$NetBSD: graphics.c,v 1.14 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -282,7 +282,7 @@ ioerror(int pos, int len, const char *str)
|
|||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
quit(int dummy __attribute__((__unused__)))
|
||||
quit(int dummy __unused)
|
||||
{
|
||||
int c, y, x;
|
||||
#ifdef BSD
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: input.c,v 1.21 2006/10/07 18:29:02 elad Exp $ */
|
||||
/* $NetBSD: input.c,v 1.22 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -46,7 +46,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)input.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: input.c,v 1.21 2006/10/07 18:29:02 elad Exp $");
|
||||
__RCSID("$NetBSD: input.c,v 1.22 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -371,7 +371,7 @@ setplane(int c)
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
turn(int c __attribute__((__unused__)))
|
||||
turn(int c __unused)
|
||||
{
|
||||
if (p.altitude == 0)
|
||||
return ("Planes at airports may not change direction");
|
||||
|
@ -380,7 +380,7 @@ turn(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
circle(int c __attribute__((__unused__)))
|
||||
circle(int c __unused)
|
||||
{
|
||||
if (p.altitude == 0)
|
||||
return ("Planes cannot circle on the ground");
|
||||
|
@ -390,7 +390,7 @@ circle(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
left(int c __attribute__((__unused__)))
|
||||
left(int c __unused)
|
||||
{
|
||||
dir = D_LEFT;
|
||||
p.new_dir = p.dir - 1;
|
||||
|
@ -401,7 +401,7 @@ left(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
right(int c __attribute__((__unused__)))
|
||||
right(int c __unused)
|
||||
{
|
||||
dir = D_RIGHT;
|
||||
p.new_dir = p.dir + 1;
|
||||
|
@ -412,7 +412,7 @@ right(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
Left(int c __attribute__((__unused__)))
|
||||
Left(int c __unused)
|
||||
{
|
||||
p.new_dir = p.dir - 2;
|
||||
if (p.new_dir < 0)
|
||||
|
@ -422,7 +422,7 @@ Left(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
Right(int c __attribute__((__unused__)))
|
||||
Right(int c __unused)
|
||||
{
|
||||
p.new_dir = p.dir + 2;
|
||||
if (p.new_dir >= MAXDIR)
|
||||
|
@ -476,7 +476,7 @@ delayb(int c)
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
beacon(int c __attribute__((__unused__)))
|
||||
beacon(int c __unused)
|
||||
{
|
||||
dest_type = T_BEACON;
|
||||
return (NULL);
|
||||
|
@ -484,7 +484,7 @@ beacon(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
ex_it(int c __attribute__((__unused__)))
|
||||
ex_it(int c __unused)
|
||||
{
|
||||
dest_type = T_EXIT;
|
||||
return (NULL);
|
||||
|
@ -492,7 +492,7 @@ ex_it(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
airport(int c __attribute__((__unused__)))
|
||||
airport(int c __unused)
|
||||
{
|
||||
dest_type = T_AIRPORT;
|
||||
return (NULL);
|
||||
|
@ -500,7 +500,7 @@ airport(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
climb(int c __attribute__((__unused__)))
|
||||
climb(int c __unused)
|
||||
{
|
||||
dir = D_UP;
|
||||
return (NULL);
|
||||
|
@ -508,7 +508,7 @@ climb(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
descend(int c __attribute__((__unused__)))
|
||||
descend(int c __unused)
|
||||
{
|
||||
dir = D_DOWN;
|
||||
return (NULL);
|
||||
|
@ -620,7 +620,7 @@ rel_dir(int c)
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
mark(int c __attribute__((__unused__)))
|
||||
mark(int c __unused)
|
||||
{
|
||||
if (p.altitude == 0)
|
||||
return ("Cannot mark planes on the ground");
|
||||
|
@ -632,7 +632,7 @@ mark(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
unmark(int c __attribute__((__unused__)))
|
||||
unmark(int c __unused)
|
||||
{
|
||||
if (p.altitude == 0)
|
||||
return ("Cannot unmark planes on the ground");
|
||||
|
@ -644,7 +644,7 @@ unmark(int c __attribute__((__unused__)))
|
|||
|
||||
/* ARGSUSED */
|
||||
const char *
|
||||
ignore(int c __attribute__((__unused__)))
|
||||
ignore(int c __unused)
|
||||
{
|
||||
if (p.altitude == 0)
|
||||
return ("Cannot ignore planes on the ground");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: log.c,v 1.18 2006/06/07 09:30:35 jnemeth Exp $ */
|
||||
/* $NetBSD: log.c,v 1.19 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -46,7 +46,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)log.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: log.c,v 1.18 2006/06/07 09:30:35 jnemeth Exp $");
|
||||
__RCSID("$NetBSD: log.c,v 1.19 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -293,7 +293,7 @@ log_score(int list_em)
|
|||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
log_score_quit(int dummy __attribute__((__unused__)))
|
||||
log_score_quit(int dummy __unused)
|
||||
{
|
||||
(void)log_score(0);
|
||||
exit(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $ */
|
||||
/* $NetBSD: update.c,v 1.19 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -46,7 +46,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)update.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $");
|
||||
__RCSID("$NetBSD: update.c,v 1.19 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -54,7 +54,7 @@ __RCSID("$NetBSD: update.c,v 1.18 2006/11/24 21:14:55 wiz Exp $");
|
|||
|
||||
/* ARGSUSED */
|
||||
void
|
||||
update(int dummy __attribute__((__unused__)))
|
||||
update(int dummy __unused)
|
||||
{
|
||||
int i, dir_diff, unclean;
|
||||
PLANE *pp, *p1, *p2;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.22 2005/07/01 01:12:39 jmc Exp $ */
|
||||
/* $NetBSD: main.c,v 1.23 2007/12/15 19:44:38 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.22 2005/07/01 01:12:39 jmc Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.23 2007/12/15 19:44:38 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -88,7 +88,7 @@ static const char password[] = "losfurng";
|
|||
static char pbuf[10];
|
||||
|
||||
int
|
||||
main(int argc __attribute__((__unused__)), char **argv)
|
||||
main(int argc __unused, char **argv)
|
||||
{
|
||||
int i; /* non-descript index */
|
||||
int l; /* non-descript index */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subs.c,v 1.15 2005/07/01 01:12:39 jmc Exp $ */
|
||||
/* $NetBSD: subs.c,v 1.16 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: subs.c,v 1.15 2005/07/01 01:12:39 jmc Exp $");
|
||||
__RCSID("$NetBSD: subs.c,v 1.16 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -433,7 +433,7 @@ fixtty(struct termios *t)
|
|||
}
|
||||
|
||||
void
|
||||
getout(int dummy __attribute__((__unused__)))
|
||||
getout(int dummy __unused)
|
||||
{
|
||||
/* go to bottom of screen */
|
||||
if (tflag) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: teach.c,v 1.17 2005/07/01 01:12:39 jmc Exp $ */
|
||||
/* $NetBSD: teach.c,v 1.18 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)teach.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: teach.c,v 1.17 2005/07/01 01:12:39 jmc Exp $");
|
||||
__RCSID("$NetBSD: teach.c,v 1.18 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ const char *const contin[] = {
|
|||
};
|
||||
|
||||
int
|
||||
main(int argc __attribute__((__unused__)), char *argv[])
|
||||
main(int argc __unused, char *argv[])
|
||||
{
|
||||
int i;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: command6.c,v 1.3 2005/07/01 06:04:54 jmc Exp $ */
|
||||
/* $NetBSD: command6.c,v 1.4 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: command6.c,v 1.3 2005/07/01 06:04:54 jmc Exp $");
|
||||
__RCSID("$NetBSD: command6.c,v 1.4 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -89,7 +89,7 @@ die(void)
|
|||
}
|
||||
|
||||
void
|
||||
diesig(int dummy __attribute__((__unused__)))
|
||||
diesig(int dummy __unused)
|
||||
{
|
||||
die();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fly.c,v 1.13 2005/07/01 06:04:54 jmc Exp $ */
|
||||
/* $NetBSD: fly.c,v 1.14 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)fly.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: fly.c,v 1.13 2005/07/01 06:04:54 jmc Exp $");
|
||||
__RCSID("$NetBSD: fly.c,v 1.14 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -61,7 +61,7 @@ static void succumb(int);
|
|||
static void target(void);
|
||||
|
||||
static void
|
||||
succumb(int dummy __attribute__((__unused__)))
|
||||
succumb(int dummy __unused)
|
||||
{
|
||||
if (oldsig == SIG_DFL) {
|
||||
endfly();
|
||||
|
@ -247,7 +247,7 @@ blast(void)
|
|||
}
|
||||
|
||||
static void
|
||||
moveenemy(int dummy __attribute__((__unused__)))
|
||||
moveenemy(int dummy __unused)
|
||||
{
|
||||
double d;
|
||||
int oldr, oldc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mach.c,v 1.16 2006/08/09 14:29:40 christos Exp $ */
|
||||
/* $NetBSD: mach.c,v 1.17 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: mach.c,v 1.16 2006/08/09 14:29:40 christos Exp $");
|
||||
__RCSID("$NetBSD: mach.c,v 1.17 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -577,7 +577,7 @@ tty_setup(void)
|
|||
}
|
||||
|
||||
static void
|
||||
stop_catcher(int signo __attribute__((__unused__)))
|
||||
stop_catcher(int signo __unused)
|
||||
{
|
||||
sigset_t isigset, osigset;
|
||||
|
||||
|
@ -597,7 +597,7 @@ stop_catcher(int signo __attribute__((__unused__)))
|
|||
}
|
||||
|
||||
static void
|
||||
cont_catcher(int signo __attribute__((__unused__)))
|
||||
cont_catcher(int signo __unused)
|
||||
{
|
||||
noecho();
|
||||
raw();
|
||||
|
@ -612,7 +612,7 @@ cont_catcher(int signo __attribute__((__unused__)))
|
|||
* It would mean reformatting the entire display
|
||||
*/
|
||||
static void
|
||||
winch_catcher(int signo __attribute__((__unused__)))
|
||||
winch_catcher(int signo __unused)
|
||||
{
|
||||
struct winsize win;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: canfield.c,v 1.22 2006/02/25 02:06:08 wiz Exp $ */
|
||||
/* $NetBSD: canfield.c,v 1.23 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,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.22 2006/02/25 02:06:08 wiz Exp $");
|
||||
__RCSID("$NetBSD: canfield.c,v 1.23 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -199,7 +199,7 @@ time_t acctstart;
|
|||
int dbfd = -1;
|
||||
|
||||
void askquit(int);
|
||||
void cleanup(int) __attribute__((__noreturn__));
|
||||
void cleanup(int) __dead;
|
||||
void cleanupboard(void);
|
||||
void clearabovemovebox(void);
|
||||
void clearbelowmovebox(void);
|
||||
|
@ -1720,7 +1720,7 @@ finish(void)
|
|||
* procedure to clean up and exit
|
||||
*/
|
||||
void
|
||||
cleanup(int dummy __attribute__((__unused__)))
|
||||
cleanup(int dummy __unused)
|
||||
{
|
||||
|
||||
total.thinktime += 1;
|
||||
|
@ -1743,7 +1743,7 @@ cleanup(int dummy __attribute__((__unused__)))
|
|||
* Field an interrupt.
|
||||
*/
|
||||
void
|
||||
askquit(int dummy __attribute__((__unused__)))
|
||||
askquit(int dummy __unused)
|
||||
{
|
||||
move(msgrow, msgcol);
|
||||
printw("Really wish to quit? ");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: io.c,v 1.20 2005/07/02 08:32:32 jmc Exp $ */
|
||||
/* $NetBSD: io.c,v 1.21 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)io.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: io.c,v 1.20 2005/07/02 08:32:32 jmc Exp $");
|
||||
__RCSID("$NetBSD: io.c,v 1.21 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -557,7 +557,7 @@ getline(void)
|
|||
}
|
||||
|
||||
void
|
||||
receive_intr(int signo __attribute__((__unused__)))
|
||||
receive_intr(int signo __unused)
|
||||
{
|
||||
bye();
|
||||
exit(1);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: score.c,v 1.12 2007/09/16 18:39:54 ragge Exp $ */
|
||||
/* $NetBSD: score.c,v 1.13 2007/12/15 19:44:39 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: score.c,v 1.12 2007/09/16 18:39:54 ragge Exp $");
|
||||
__RCSID("$NetBSD: score.c,v 1.13 2007/12/15 19:44:39 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -337,7 +337,7 @@ pegscore(CARD crd, const CARD tbl[], int n, int sum)
|
|||
* points such a crib will get.
|
||||
*/
|
||||
int
|
||||
adjust(const CARD cb[], CARD tnv __attribute__((__unused__)))
|
||||
adjust(const CARD cb[], CARD tnv __unused)
|
||||
{
|
||||
long scr;
|
||||
int i, c0, c1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dm.c,v 1.23 2006/05/25 07:11:54 dan Exp $ */
|
||||
/* $NetBSD: dm.c,v 1.24 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1987, 1993
|
||||
|
@ -39,7 +39,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.23 2006/05/25 07:11:54 dan Exp $");
|
||||
__RCSID("$NetBSD: dm.c,v 1.24 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -72,12 +72,12 @@ void c_tty(const char *);
|
|||
const char *hour(int);
|
||||
double load(void);
|
||||
void nogamefile(void);
|
||||
void play(char **) __attribute__((__noreturn__));
|
||||
void play(char **) __dead;
|
||||
void read_config(void);
|
||||
int users(void);
|
||||
|
||||
int
|
||||
main(int argc __attribute__((__unused__)), char *argv[])
|
||||
main(int argc __unused, char *argv[])
|
||||
{
|
||||
char *cp;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: factor.c,v 1.16 2005/06/27 20:49:31 rillig Exp $ */
|
||||
/* $NetBSD: factor.c,v 1.17 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -42,7 +42,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.16 2005/06/27 20:49:31 rillig Exp $");
|
||||
__RCSID("$NetBSD: factor.c,v 1.17 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -108,7 +108,7 @@ BN_CTX *ctx; /* just use a global context */
|
|||
int main(int, char *[]);
|
||||
void pr_fact(BIGNUM *); /* print factors of a value */
|
||||
void BN_print_dec_fp(FILE *, const BIGNUM *);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
#ifdef HAVE_OPENSSL
|
||||
void pollard_pminus1(BIGNUM *); /* print factors for big numbers */
|
||||
#else
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fish.c,v 1.17 2005/07/02 08:38:24 jmc Exp $ */
|
||||
/* $NetBSD: fish.c,v 1.18 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1990, 1993
|
||||
|
@ -42,7 +42,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.17 2005/07/02 08:38:24 jmc Exp $");
|
||||
__RCSID("$NetBSD: fish.c,v 1.18 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -91,7 +91,7 @@ int nrandom(int);
|
|||
void printhand(const int *);
|
||||
void printplayer(int);
|
||||
int promove(void);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
int usermove(void);
|
||||
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fortune.c,v 1.49 2006/05/13 22:28:04 christos Exp $ */
|
||||
/* $NetBSD: fortune.c,v 1.50 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1993
|
||||
|
@ -42,7 +42,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.49 2006/05/13 22:28:04 christos Exp $");
|
||||
__RCSID("$NetBSD: fortune.c,v 1.50 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -158,7 +158,7 @@ void print_file_list(void);
|
|||
void print_list(FILEDESC *, int);
|
||||
void sum_noprobs(FILEDESC *);
|
||||
void sum_tbl(STRFILE *, STRFILE *);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
void zero_tbl(STRFILE *);
|
||||
|
||||
#ifndef NO_REGEX
|
||||
|
@ -808,7 +808,7 @@ is_fortfile(file, datp, posp, check_for_offend)
|
|||
const char *file;
|
||||
char **datp, **posp
|
||||
# ifndef OK_TO_WRITE_DISK
|
||||
__attribute__((__unused__))
|
||||
__unused
|
||||
# endif
|
||||
;
|
||||
int check_for_offend;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: strfile.c,v 1.23 2005/04/19 20:16:19 rillig Exp $ */
|
||||
/* $NetBSD: strfile.c,v 1.24 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -43,7 +43,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.23 2005/04/19 20:16:19 rillig Exp $");
|
||||
__RCSID("$NetBSD: strfile.c,v 1.24 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
#endif /* __NetBSD__ */
|
||||
|
@ -144,7 +144,7 @@ STRFILE Tbl; /* statistics table */
|
|||
STR *Firstch; /* first chars of each string */
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define NORETURN __attribute__((__noreturn__))
|
||||
#define NORETURN __dead
|
||||
#else
|
||||
#define NORETURN
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: unstr.c,v 1.11 2004/02/08 22:23:50 jsm Exp $ */
|
||||
/* $NetBSD: unstr.c,v 1.12 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)unstr.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: unstr.c,v 1.11 2004/02/08 22:23:50 jsm Exp $");
|
||||
__RCSID("$NetBSD: unstr.c,v 1.12 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -86,7 +86,7 @@ void order_unstr(STRFILE *);
|
|||
/* ARGSUSED */
|
||||
int
|
||||
main(ac, av)
|
||||
int ac __attribute__((__unused__));
|
||||
int ac __unused;
|
||||
char **av;
|
||||
{
|
||||
static STRFILE tbl; /* description table */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $ */
|
||||
/* $NetBSD: main.c,v 1.13 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.4 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.12 2004/01/27 20:30:29 jsm Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.13 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -532,7 +532,7 @@ quit()
|
|||
|
||||
void
|
||||
quitsig(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
quit();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pickmove.c,v 1.11 2004/01/27 20:26:20 jsm Exp $ */
|
||||
/* $NetBSD: pickmove.c,v 1.12 2007/12/15 19:44:40 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pickmove.c 8.2 (Berkeley) 5/3/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: pickmove.c,v 1.11 2004/01/27 20:26:20 jsm Exp $");
|
||||
__RCSID("$NetBSD: pickmove.c,v 1.12 2007/12/15 19:44:40 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -1050,7 +1050,7 @@ updatecombo(cbp, color)
|
|||
void
|
||||
appendcombo(cbp, color)
|
||||
struct combostr *cbp;
|
||||
int color __attribute__((__unused__));
|
||||
int color __unused;
|
||||
{
|
||||
struct combostr *pcbp, *ncbp;
|
||||
|
||||
|
|
|
@ -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.");
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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++;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.11 2003/08/07 09:37:22 agc Exp $ */
|
||||
/* $NetBSD: main.c,v 1.12 2007/12/15 19:44:41 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.11 2003/08/07 09:37:22 agc Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.12 2007/12/15 19:44:41 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -92,7 +92,7 @@ main(argc, argv)
|
|||
*/
|
||||
void
|
||||
die(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
mvcur(0, COLS - 1, LINES - 1, 0);
|
||||
endwin();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mille.c,v 1.13 2003/08/07 09:37:25 agc Exp $ */
|
||||
/* $NetBSD: mille.c,v 1.14 2007/12/15 19:44:41 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1982, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)mille.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: mille.c,v 1.13 2003/08/07 09:37:25 agc Exp $");
|
||||
__RCSID("$NetBSD: mille.c,v 1.14 2007/12/15 19:44:41 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -139,7 +139,7 @@ main(ac, av)
|
|||
*/
|
||||
void
|
||||
rub(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
(void)signal(SIGINT, SIG_IGN);
|
||||
if (getyn(REALLYPROMPT))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: print.c,v 1.11 2003/08/07 09:37:26 agc Exp $ */
|
||||
/* $NetBSD: print.c,v 1.12 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: print.c,v 1.11 2003/08/07 09:37:26 agc Exp $");
|
||||
__RCSID("$NetBSD: print.c,v 1.12 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -121,7 +121,7 @@ prscore(for_real)
|
|||
#ifdef EXTRAP
|
||||
bool for_real;
|
||||
#else
|
||||
bool for_real __attribute__((__unused__));
|
||||
bool for_real __unused;
|
||||
#endif
|
||||
{
|
||||
PLAY *pp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: monop.c,v 1.15 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: monop.c,v 1.16 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)monop.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: monop.c,v 1.15 2004/01/27 20:30:30 jsm Exp $");
|
||||
__RCSID("$NetBSD: monop.c,v 1.16 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -93,7 +93,7 @@ main(ac, av)
|
|||
/*ARGSUSED*/
|
||||
static void
|
||||
do_quit(n)
|
||||
int n __attribute__((__unused__));
|
||||
int n __unused;
|
||||
{
|
||||
quit();
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: number.c,v 1.10 2004/11/05 21:30:32 dsl Exp $ */
|
||||
/* $NetBSD: number.c,v 1.11 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993, 1994
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)number.c 8.3 (Berkeley) 5/4/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: number.c,v 1.10 2004/11/05 21:30:32 dsl Exp $");
|
||||
__RCSID("$NetBSD: number.c,v 1.11 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -81,7 +81,7 @@ int main(int, char *[]);
|
|||
int number(const char *, int);
|
||||
void pfract(int);
|
||||
int unit(int, const char *);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
int lflag;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: io.c,v 1.10 2007/12/15 16:32:05 perry Exp $ */
|
||||
/* $NetBSD: io.c,v 1.11 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* io.c - input/output routines for Phantasia
|
||||
|
@ -241,7 +241,7 @@ getanswer(choices, def)
|
|||
|
||||
void
|
||||
catchalarm(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
longjmp(Timeoenv, 1);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: setup.c,v 1.15 2007/12/15 16:32:05 perry Exp $ */
|
||||
/* $NetBSD: setup.c,v 1.16 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* setup.c - set up all files for Phantasia
|
||||
|
@ -10,7 +10,7 @@
|
|||
#include "include.h"
|
||||
|
||||
int main(int, char *[]);
|
||||
void Error(const char *, const char *) __attribute__((__noreturn__));
|
||||
void Error(const char *, const char *) __dead;
|
||||
double drandom(void);
|
||||
|
||||
/**/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pig.c,v 1.11 2004/11/05 21:30:32 dsl Exp $ */
|
||||
/* $NetBSD: pig.c,v 1.12 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -39,7 +39,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.11 2004/11/05 21:30:32 dsl Exp $");
|
||||
__RCSID("$NetBSD: pig.c,v 1.12 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -54,7 +54,7 @@ __RCSID("$NetBSD: pig.c,v 1.11 2004/11/05 21:30:32 dsl Exp $");
|
|||
|
||||
int main(int, char *[]);
|
||||
void pigout(char *, int);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pom.c,v 1.15 2007/01/12 22:43:05 hubertf Exp $ */
|
||||
/* $NetBSD: pom.c,v 1.16 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -41,7 +41,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pom.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: pom.c,v 1.15 2007/01/12 22:43:05 hubertf Exp $");
|
||||
__RCSID("$NetBSD: pom.c,v 1.16 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -89,7 +89,7 @@ double dtor(double);
|
|||
int main(int, char *[]);
|
||||
double potm(double);
|
||||
time_t parsetime(char *);
|
||||
void badformat(void) __attribute__((__noreturn__));
|
||||
void badformat(void) __dead;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: primes.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: primes.c,v 1.13 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -42,7 +42,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.12 2004/01/27 20:30:30 jsm Exp $");
|
||||
__RCSID("$NetBSD: primes.c,v 1.13 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -106,7 +106,7 @@ extern const int pattern_size; /* length of pattern array */
|
|||
int main(int, char *[]);
|
||||
void primes(ubig, ubig);
|
||||
ubig read_num_buf(void);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: quiz.c,v 1.21 2007/01/17 00:30:23 hubertf Exp $ */
|
||||
/* $NetBSD: quiz.c,v 1.22 2007/12/15 19:44:42 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1991, 1993
|
||||
|
@ -43,7 +43,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.21 2007/01/17 00:30:23 hubertf Exp $");
|
||||
__RCSID("$NetBSD: quiz.c,v 1.22 2007/12/15 19:44:42 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -73,7 +73,7 @@ const char *next_cat(const char *);
|
|||
void quiz(void);
|
||||
void score(u_int, u_int, u_int);
|
||||
void show_index(void);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rain.c,v 1.18 2005/08/09 09:15:23 rpaulo Exp $ */
|
||||
/* $NetBSD: rain.c,v 1.19 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rain.c,v 1.18 2005/08/09 09:15:23 rpaulo Exp $");
|
||||
__RCSID("$NetBSD: rain.c,v 1.19 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -146,7 +146,7 @@ main(int argc, char **argv)
|
|||
|
||||
/* ARGSUSED */
|
||||
static void
|
||||
onsig(int dummy __attribute__((__unused__)))
|
||||
onsig(int dummy __unused)
|
||||
{
|
||||
sig_caught = 1;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: random.c,v 1.10 2005/08/10 14:02:26 rpaulo Exp $ */
|
||||
/* $NetBSD: random.c,v 1.11 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)random.c 8.6 (Berkeley) 6/1/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: random.c,v 1.10 2005/08/10 14:02:26 rpaulo Exp $");
|
||||
__RCSID("$NetBSD: random.c,v 1.11 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -60,7 +60,7 @@ __RCSID("$NetBSD: random.c,v 1.10 2005/08/10 14:02:26 rpaulo Exp $");
|
|||
#define MAXRANDOM 2147483647
|
||||
|
||||
int main(int, char **);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.21 2004/11/05 21:30:32 dsl Exp $ */
|
||||
/* $NetBSD: main.c,v 1.22 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: main.c,v 1.21 2004/11/05 21:30:32 dsl Exp $");
|
||||
__RCSID("$NetBSD: main.c,v 1.22 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -197,7 +197,7 @@ main(ac, av)
|
|||
*/
|
||||
void
|
||||
quit(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
endwin();
|
||||
exit(0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: init.c,v 1.13 2003/08/07 09:37:38 agc Exp $ */
|
||||
/* $NetBSD: init.c,v 1.14 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1993
|
||||
|
@ -37,7 +37,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)init.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: init.c,v 1.13 2003/08/07 09:37:38 agc Exp $");
|
||||
__RCSID("$NetBSD: init.c,v 1.14 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -218,7 +218,7 @@ stop_window()
|
|||
|
||||
void
|
||||
byebye(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
md_ignore_signals();
|
||||
if (ask_quit) {
|
||||
|
@ -231,7 +231,7 @@ byebye(dummy)
|
|||
|
||||
void
|
||||
onintr(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
md_ignore_signals();
|
||||
if (cant_int) {
|
||||
|
@ -245,7 +245,7 @@ onintr(dummy)
|
|||
|
||||
void
|
||||
error_save(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
save_is_interactive = 0;
|
||||
save_into_file(error_file);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pl_1.c,v 1.18 2004/01/27 20:23:36 jsm Exp $ */
|
||||
/* $NetBSD: pl_1.c,v 1.19 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: pl_1.c,v 1.18 2004/01/27 20:23:36 jsm Exp $");
|
||||
__RCSID("$NetBSD: pl_1.c,v 1.19 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -120,14 +120,14 @@ leave(int conditions)
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
choke(int n __attribute__((__unused__)))
|
||||
choke(int n __unused)
|
||||
{
|
||||
leave(LEAVE_QUIT);
|
||||
}
|
||||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
child(int n __attribute__((__unused__)))
|
||||
child(int n __unused)
|
||||
{
|
||||
int status;
|
||||
int pid;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: pl_7.c,v 1.27 2003/08/07 09:37:44 agc Exp $ */
|
||||
/* $NetBSD: pl_7.c,v 1.28 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: pl_7.c,v 1.27 2003/08/07 09:37:44 agc Exp $");
|
||||
__RCSID("$NetBSD: pl_7.c,v 1.28 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -114,7 +114,7 @@ cleanupscreen(void)
|
|||
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
newturn(int n __attribute__((__unused__)))
|
||||
newturn(int n __unused)
|
||||
{
|
||||
repaired = loaded = fired = changed = 0;
|
||||
movebuf[0] = '\0';
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: snake.c,v 1.22 2007/01/17 00:30:23 hubertf Exp $ */
|
||||
/* $NetBSD: snake.c,v 1.23 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)snake.c 8.2 (Berkeley) 1/7/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: snake.c,v 1.22 2007/01/17 00:30:23 hubertf Exp $");
|
||||
__RCSID("$NetBSD: snake.c,v 1.23 2007/12/15 19:44:43 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -122,7 +122,7 @@ void home(void);
|
|||
void length(int);
|
||||
void logit(const char *);
|
||||
int main(int, char **);
|
||||
void mainloop(void) __attribute__((__noreturn__));
|
||||
void mainloop(void) __dead;
|
||||
struct point *point(struct point *, int, int);
|
||||
int post(int, int);
|
||||
int pushsnake(void);
|
||||
|
@ -131,7 +131,7 @@ void setup(void);
|
|||
void snap(void);
|
||||
void snrand(struct point *);
|
||||
void spacewarp(int);
|
||||
void stop(int) __attribute__((__noreturn__));
|
||||
void stop(int) __dead;
|
||||
int stretch(const struct point *);
|
||||
void surround(struct point *);
|
||||
void suspend(void);
|
||||
|
@ -974,7 +974,7 @@ winnings(won)
|
|||
|
||||
void
|
||||
stop(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
signal(SIGINT, SIG_IGN);
|
||||
endwin();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: screen.c,v 1.20 2007/12/15 16:32:05 perry Exp $ */
|
||||
/* $NetBSD: screen.c,v 1.21 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -64,7 +64,7 @@ static struct termios oldtt;
|
|||
static void (*tstp)(int);
|
||||
|
||||
static void scr_stop(int);
|
||||
static void stopset(int) __attribute__((__noreturn__));
|
||||
static void stopset(int) __dead;
|
||||
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tetris.c,v 1.17 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: tetris.c,v 1.18 2007/12/15 19:44:43 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -77,8 +77,8 @@ int showpreview;
|
|||
static void elide(void);
|
||||
static void setup_board(void);
|
||||
int main(int, char **);
|
||||
void onintr(int) __attribute__((__noreturn__));
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void onintr(int) __dead;
|
||||
void usage(void) __dead;
|
||||
|
||||
/*
|
||||
* Set up the initial board. The bottom display row is completely set,
|
||||
|
@ -322,7 +322,7 @@ main(argc, argv)
|
|||
|
||||
void
|
||||
onintr(signo)
|
||||
int signo __attribute__((__unused__));
|
||||
int signo __unused;
|
||||
{
|
||||
scr_clear();
|
||||
scr_end();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: abandon.c,v 1.6 2003/08/07 09:37:49 agc Exp $ */
|
||||
/* $NetBSD: abandon.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)abandon.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: abandon.c,v 1.6 2003/08/07 09:37:49 agc Exp $");
|
||||
__RCSID("$NetBSD: abandon.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -69,7 +69,7 @@ __RCSID("$NetBSD: abandon.c,v 1.6 2003/08/07 09:37:49 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
abandon(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
struct quad *q;
|
||||
int i;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: capture.c,v 1.6 2003/08/07 09:37:50 agc Exp $ */
|
||||
/* $NetBSD: capture.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)capture.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: capture.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
||||
__RCSID("$NetBSD: capture.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -58,7 +58,7 @@ __RCSID("$NetBSD: capture.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
capture(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i;
|
||||
struct kling *k;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cgetc.c,v 1.6 2003/08/07 09:37:50 agc Exp $ */
|
||||
/* $NetBSD: cgetc.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)cgetc.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: cgetc.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
||||
__RCSID("$NetBSD: cgetc.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -42,7 +42,7 @@ __RCSID("$NetBSD: cgetc.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
|||
# include "trek.h"
|
||||
|
||||
char cgetc(i)
|
||||
int i __attribute__((__unused__));
|
||||
int i __unused;
|
||||
{
|
||||
return ( getchar() );
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: computer.c,v 1.10 2004/01/27 20:30:30 jsm Exp $ */
|
||||
/* $NetBSD: computer.c,v 1.11 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)computer.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: computer.c,v 1.10 2004/01/27 20:30:30 jsm Exp $");
|
||||
__RCSID("$NetBSD: computer.c,v 1.11 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -110,7 +110,7 @@ static void prkalc(int, double);
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
computer(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int ix, iy;
|
||||
int i, j;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dcrept.c,v 1.6 2003/08/07 09:37:50 agc Exp $ */
|
||||
/* $NetBSD: dcrept.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dcrept.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: dcrept.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
||||
__RCSID("$NetBSD: dcrept.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -56,7 +56,7 @@ __RCSID("$NetBSD: dcrept.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
dcrept(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i, f;
|
||||
double x;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: destruct.c,v 1.7 2003/08/07 09:37:50 agc Exp $ */
|
||||
/* $NetBSD: destruct.c,v 1.8 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)destruct.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: destruct.c,v 1.7 2003/08/07 09:37:50 agc Exp $");
|
||||
__RCSID("$NetBSD: destruct.c,v 1.8 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -67,7 +67,7 @@ __RCSID("$NetBSD: destruct.c,v 1.7 2003/08/07 09:37:50 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
destruct(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
char checkpass[15];
|
||||
int i, j;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dock.c,v 1.6 2003/08/07 09:37:50 agc Exp $ */
|
||||
/* $NetBSD: dock.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dock.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: dock.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
||||
__RCSID("$NetBSD: dock.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -59,7 +59,7 @@ __RCSID("$NetBSD: dock.c,v 1.6 2003/08/07 09:37:50 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
dock(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i, j;
|
||||
int ok;
|
||||
|
@ -133,7 +133,7 @@ dock(v)
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
undock(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
struct event *e;
|
||||
int i;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dumpgame.c,v 1.10 2006/03/19 01:00:35 christos Exp $ */
|
||||
/* $NetBSD: dumpgame.c,v 1.11 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)dumpgame.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: dumpgame.c,v 1.10 2006/03/19 01:00:35 christos Exp $");
|
||||
__RCSID("$NetBSD: dumpgame.c,v 1.11 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -83,7 +83,7 @@ struct dump Dump_template[] =
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
dumpgame(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int version;
|
||||
int fd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: help.c,v 1.7 2003/08/07 09:37:52 agc Exp $ */
|
||||
/* $NetBSD: help.c,v 1.8 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)help.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: help.c,v 1.7 2003/08/07 09:37:52 agc Exp $");
|
||||
__RCSID("$NetBSD: help.c,v 1.8 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -69,7 +69,7 @@ const char *const Cntvect[3] =
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
help(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i;
|
||||
double dist, x;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: impulse.c,v 1.6 2003/08/07 09:37:52 agc Exp $ */
|
||||
/* $NetBSD: impulse.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)impulse.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: impulse.c,v 1.6 2003/08/07 09:37:52 agc Exp $");
|
||||
__RCSID("$NetBSD: impulse.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -49,7 +49,7 @@ __RCSID("$NetBSD: impulse.c,v 1.6 2003/08/07 09:37:52 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
impulse(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int course;
|
||||
int power;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lrscan.c,v 1.6 2003/08/07 09:37:52 agc Exp $ */
|
||||
/* $NetBSD: lrscan.c,v 1.7 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)lrscan.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: lrscan.c,v 1.6 2003/08/07 09:37:52 agc Exp $");
|
||||
__RCSID("$NetBSD: lrscan.c,v 1.7 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -56,7 +56,7 @@ __RCSID("$NetBSD: lrscan.c,v 1.6 2003/08/07 09:37:52 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
lrscan(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i, j;
|
||||
struct quad *q;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: phaser.c,v 1.9 2003/08/07 09:37:53 agc Exp $ */
|
||||
/* $NetBSD: phaser.c,v 1.10 2007/12/15 19:44:44 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)phaser.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: phaser.c,v 1.9 2003/08/07 09:37:53 agc Exp $");
|
||||
__RCSID("$NetBSD: phaser.c,v 1.10 2007/12/15 19:44:44 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -95,7 +95,7 @@ struct banks
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
phaser(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: play.c,v 1.8 2003/08/07 09:37:53 agc Exp $ */
|
||||
/* $NetBSD: play.c,v 1.9 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)play.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: play.c,v 1.8 2003/08/07 09:37:53 agc Exp $");
|
||||
__RCSID("$NetBSD: play.c,v 1.9 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -87,7 +87,7 @@ const struct cvntab Comtab[] =
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
myreset(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
|
||||
longjmp(env, 1);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $ */
|
||||
/* $NetBSD: rest.c,v 1.7 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)rest.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $");
|
||||
__RCSID("$NetBSD: rest.c,v 1.7 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -59,7 +59,7 @@ __RCSID("$NetBSD: rest.c,v 1.6 2003/08/07 09:37:53 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
rest(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
double t;
|
||||
int percent;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: setwarp.c,v 1.6 2003/08/07 09:37:54 agc Exp $ */
|
||||
/* $NetBSD: setwarp.c,v 1.7 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)setwarp.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: setwarp.c,v 1.6 2003/08/07 09:37:54 agc Exp $");
|
||||
__RCSID("$NetBSD: setwarp.c,v 1.7 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -52,7 +52,7 @@ __RCSID("$NetBSD: setwarp.c,v 1.6 2003/08/07 09:37:54 agc Exp $");
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
setwarp(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
double warpfac;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: torped.c,v 1.8 2004/01/27 20:30:31 jsm Exp $ */
|
||||
/* $NetBSD: torped.c,v 1.9 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)torped.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: torped.c,v 1.8 2004/01/27 20:30:31 jsm Exp $");
|
||||
__RCSID("$NetBSD: torped.c,v 1.9 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -68,7 +68,7 @@ static int randcourse(int);
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
torped(v)
|
||||
int v __attribute__((__unused__));
|
||||
int v __unused;
|
||||
{
|
||||
int ix, iy;
|
||||
double x, y, dx, dy;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: visual.c,v 1.6 2003/08/07 09:37:55 agc Exp $ */
|
||||
/* $NetBSD: visual.c,v 1.7 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)visual.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: visual.c,v 1.6 2003/08/07 09:37:55 agc Exp $");
|
||||
__RCSID("$NetBSD: visual.c,v 1.7 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -70,7 +70,7 @@ struct xy Visdelta[11] =
|
|||
/*ARGSUSED*/
|
||||
void
|
||||
visual(z)
|
||||
int z __attribute__((__unused__));
|
||||
int z __unused;
|
||||
{
|
||||
int ix, iy;
|
||||
int co;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: worm.c,v 1.25 2004/01/27 20:30:31 jsm Exp $ */
|
||||
/* $NetBSD: worm.c,v 1.26 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,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.25 2004/01/27 20:30:31 jsm Exp $");
|
||||
__RCSID("$NetBSD: worm.c,v 1.26 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -80,10 +80,10 @@ int visible_len;
|
|||
int lastch;
|
||||
char outbuf[BUFSIZ];
|
||||
|
||||
void crash(void) __attribute__((__noreturn__));
|
||||
void crash(void) __dead;
|
||||
void display(const struct body *, char);
|
||||
int main(int, char **);
|
||||
void leave(int) __attribute__((__noreturn__));
|
||||
void leave(int) __dead;
|
||||
void life(void);
|
||||
void newpos(struct body *);
|
||||
void process(int);
|
||||
|
@ -213,7 +213,7 @@ leave(dummy)
|
|||
|
||||
void
|
||||
wake(dummy)
|
||||
int dummy __attribute__((__unused__));
|
||||
int dummy __unused;
|
||||
{
|
||||
signal(SIGALRM, wake);
|
||||
fflush(stdout);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: worms.c,v 1.16 2004/09/12 04:51:32 christos Exp $ */
|
||||
/* $NetBSD: worms.c,v 1.17 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
|
@ -39,7 +39,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.16 2004/09/12 04:51:32 christos Exp $");
|
||||
__RCSID("$NetBSD: worms.c,v 1.17 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -180,7 +180,7 @@ static struct worm {
|
|||
volatile sig_atomic_t sig_caught = 0;
|
||||
|
||||
int main(int, char **);
|
||||
void nomem(void) __attribute__((__noreturn__));
|
||||
void nomem(void) __dead;
|
||||
void onsig(int);
|
||||
|
||||
int
|
||||
|
@ -340,7 +340,7 @@ main(argc, argv)
|
|||
|
||||
void
|
||||
onsig(signo)
|
||||
int signo __attribute__((__unused__));
|
||||
int signo __unused;
|
||||
{
|
||||
sig_caught = 1;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wump.c,v 1.20 2006/01/19 21:20:35 garbled Exp $ */
|
||||
/* $NetBSD: wump.c,v 1.21 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -43,7 +43,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.20 2006/01/19 21:20:35 garbled Exp $");
|
||||
__RCSID("$NetBSD: wump.c,v 1.21 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -133,7 +133,7 @@ void pit_survive(void);
|
|||
int shoot(char *);
|
||||
void shoot_self(void);
|
||||
int take_action(void);
|
||||
void usage(void) __attribute__((__noreturn__));
|
||||
void usage(void) __dead;
|
||||
void wump_kill(void);
|
||||
int wump_nearby(void);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atrun.c,v 1.17 2007/12/15 16:32:05 perry Exp $ */
|
||||
/* $NetBSD: atrun.c,v 1.18 2007/12/15 19:44:45 perry Exp $ */
|
||||
|
||||
/*
|
||||
* atrun.c - run jobs queued by at; run with root privileges.
|
||||
|
@ -59,14 +59,14 @@
|
|||
#if 0
|
||||
static char rcsid[] = "$OpenBSD: atrun.c,v 1.7 1997/09/08 22:12:10 millert Exp $";
|
||||
#else
|
||||
__RCSID("$NetBSD: atrun.c,v 1.17 2007/12/15 16:32:05 perry Exp $");
|
||||
__RCSID("$NetBSD: atrun.c,v 1.18 2007/12/15 19:44:45 perry Exp $");
|
||||
#endif
|
||||
|
||||
static int debug = 0;
|
||||
|
||||
/* Local functions */
|
||||
static void perr(const char *, ...) __attribute__((__noreturn__));
|
||||
static void perrx(const char *, ...) __attribute__((__noreturn__));
|
||||
static void perr(const char *, ...) __dead;
|
||||
static void perrx(const char *, ...) __dead;
|
||||
static int write_string(int, const char *);
|
||||
static void run_file(const char *, uid_t, gid_t);
|
||||
static void become_user(struct passwd *, uid_t);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rexecd.c,v 1.24 2006/05/11 00:22:52 mrg Exp $ */
|
||||
/* $NetBSD: rexecd.c,v 1.25 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
|
@ -36,7 +36,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "from: @(#)rexecd.c 8.1 (Berkeley) 6/4/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: rexecd.c,v 1.24 2006/05/11 00:22:52 mrg Exp $");
|
||||
__RCSID("$NetBSD: rexecd.c,v 1.25 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -69,9 +69,9 @@ __RCSID("$NetBSD: rexecd.c,v 1.24 2006/05/11 00:22:52 mrg Exp $");
|
|||
int main(int, char *[]);
|
||||
static void rexecd_errx(int, const char *, ...)
|
||||
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
|
||||
static void doit(struct sockaddr *) __attribute__((__noreturn__));
|
||||
static void doit(struct sockaddr *) __dead;
|
||||
static void getstr(char *, int, const char *);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
#ifdef USE_PAM
|
||||
static pam_handle_t *pamh;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rexec.c,v 1.2 2005/02/27 01:34:07 christos Exp $ */
|
||||
/* $NetBSD: rexec.c,v 1.3 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2005 The NetBSD Foundation, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
* POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: rexec.c,v 1.2 2005/02/27 01:34:07 christos Exp $");
|
||||
__RCSID("$NetBSD: rexec.c,v 1.3 2007/12/15 19:44:46 perry Exp $");
|
||||
|
||||
#include <stdio.h>
|
||||
#include <netdb.h>
|
||||
|
@ -44,7 +44,7 @@ __RCSID("$NetBSD: rexec.c,v 1.2 2005/02/27 01:34:07 christos Exp $");
|
|||
#include <unistd.h>
|
||||
#include <err.h>
|
||||
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
/*XXX*/
|
||||
int rexec(char **, int, char *, char *, char *, int *);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rusersd.c,v 1.16 2006/05/09 20:18:07 mrg Exp $ */
|
||||
/* $NetBSD: rusersd.c,v 1.17 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1993 John Brezak
|
||||
|
@ -30,7 +30,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: rusersd.c,v 1.16 2006/05/09 20:18:07 mrg Exp $");
|
||||
__RCSID("$NetBSD: rusersd.c,v 1.17 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <stdio.h>
|
||||
|
@ -47,7 +47,7 @@ __RCSID("$NetBSD: rusersd.c,v 1.16 2006/05/09 20:18:07 mrg Exp $");
|
|||
|
||||
int from_inetd = 1;
|
||||
|
||||
static void cleanup(int) __attribute__((__noreturn__));
|
||||
static void cleanup(int) __dead;
|
||||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rshd.c,v 1.44 2006/05/09 20:18:07 mrg Exp $ */
|
||||
/* $NetBSD: rshd.c,v 1.45 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1998 WIDE Project.
|
||||
|
@ -69,7 +69,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1992, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94";
|
||||
#else
|
||||
__RCSID("$NetBSD: rshd.c,v 1.44 2006/05/09 20:18:07 mrg Exp $");
|
||||
__RCSID("$NetBSD: rshd.c,v 1.45 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -137,7 +137,7 @@ int check_all;
|
|||
int log_success; /* If TRUE, log all successful accesses */
|
||||
int sent_null;
|
||||
|
||||
void doit(struct sockaddr *) __attribute__((__noreturn__));
|
||||
void doit(struct sockaddr *) __dead;
|
||||
void rshd_errx(int, const char *, ...)
|
||||
__attribute__((__noreturn__, __format__(__printf__, 2, 3)));
|
||||
void getstr(char *, int, const char *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_msdos.c,v 1.43 2007/07/16 17:06:53 pooka Exp $ */
|
||||
/* $NetBSD: mount_msdos.c,v 1.44 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mount_msdos.c,v 1.43 2007/07/16 17:06:53 pooka Exp $");
|
||||
__RCSID("$NetBSD: mount_msdos.c,v 1.44 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -66,7 +66,7 @@ static const struct mntopt mopts[] = {
|
|||
};
|
||||
|
||||
int mount_msdos(int argc, char **argv);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
#ifndef MOUNT_NOMAIN
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_ntfs.c,v 1.19 2007/07/16 17:06:53 pooka Exp $ */
|
||||
/* $NetBSD: mount_ntfs.c,v 1.20 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Christopher G. Demetriou
|
||||
|
@ -35,7 +35,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mount_ntfs.c,v 1.19 2007/07/16 17:06:53 pooka Exp $");
|
||||
__RCSID("$NetBSD: mount_ntfs.c,v 1.20 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -61,7 +61,7 @@ static const struct mntopt mopts[] = {
|
|||
MOPT_NULL,
|
||||
};
|
||||
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
int mount_ntfs(int argc, char **argv);
|
||||
|
||||
#ifndef MOUNT_NOMAIN
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_tmpfs.c,v 1.19 2007/12/14 17:37:22 christos Exp $ */
|
||||
/* $NetBSD: mount_tmpfs.c,v 1.20 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -39,7 +39,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mount_tmpfs.c,v 1.19 2007/12/14 17:37:22 christos Exp $");
|
||||
__RCSID("$NetBSD: mount_tmpfs.c,v 1.20 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -71,7 +71,7 @@ static const struct mntopt mopts[] = {
|
|||
/* --------------------------------------------------------------------- */
|
||||
|
||||
static int mount_tmpfs(int argc, char **argv);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
/* --------------------------------------------------------------------- */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount_udf.c,v 1.10 2007/07/14 15:57:27 dsl Exp $ */
|
||||
/* $NetBSD: mount_udf.c,v 1.11 2007/12/15 19:44:46 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006 Reinoud Zandijk
|
||||
|
@ -36,7 +36,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: mount_udf.c,v 1.10 2007/07/14 15:57:27 dsl Exp $");
|
||||
__RCSID("$NetBSD: mount_udf.c,v 1.11 2007/12/15 19:44:46 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
|
||||
|
@ -76,7 +76,7 @@ static const struct mntopt mopts[] = {
|
|||
|
||||
/* prototypes */
|
||||
int mount_udf(int argc, char **argv);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
|
||||
/* code */
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: newfs.c,v 1.99 2007/07/16 17:06:55 pooka Exp $ */
|
||||
/* $NetBSD: newfs.c,v 1.100 2007/12/15 19:44:47 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1989, 1993, 1994
|
||||
|
@ -78,7 +78,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: newfs.c,v 1.99 2007/07/16 17:06:55 pooka Exp $");
|
||||
__RCSID("$NetBSD: newfs.c,v 1.100 2007/12/15 19:44:47 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -133,7 +133,7 @@ struct mntopt mopts[] = {
|
|||
static gid_t mfs_group(const char *);
|
||||
static uid_t mfs_user(const char *);
|
||||
static int64_t strsuftoi64(const char *, const char *, int64_t, int64_t, int *);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
#define COMPAT /* allow non-labeled disks */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: newfs_ext2fs.c,v 1.2 2007/12/14 13:19:35 tsutsui Exp $ */
|
||||
/* $NetBSD: newfs_ext2fs.c,v 1.3 2007/12/15 19:44:47 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1989, 1993, 1994
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: newfs_ext2fs.c,v 1.2 2007/12/14 13:19:35 tsutsui Exp $");
|
||||
__RCSID("$NetBSD: newfs_ext2fs.c,v 1.3 2007/12/15 19:44:47 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -71,7 +71,7 @@ __RCSID("$NetBSD: newfs_ext2fs.c,v 1.2 2007/12/14 13:19:35 tsutsui Exp $");
|
|||
#include "partutil.h"
|
||||
|
||||
static int64_t strsuftoi64(const char *, const char *, int64_t, int64_t, int *);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
/*
|
||||
* For file systems smaller than SMALL_FSSIZE we use the S_DFL_* defaults,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: resize_ffs.c,v 1.11 2007/12/15 16:32:06 perry Exp $ */
|
||||
/* $NetBSD: resize_ffs.c,v 1.12 2007/12/15 19:44:47 perry Exp $ */
|
||||
/* From sources sent on February 17, 2003 */
|
||||
/*-
|
||||
* As its sole author, I explicitly place this code in the public
|
||||
|
@ -62,7 +62,7 @@
|
|||
( (__GNUC__ == 2) && \
|
||||
defined(__GNUC_MINOR__) && \
|
||||
(__GNUC_MINOR__ >= 7) ) )
|
||||
#define UNUSED_ARG(x) x __attribute__((__unused__))
|
||||
#define UNUSED_ARG(x) x __unused
|
||||
#define INLINE inline
|
||||
#else
|
||||
#define UNUSED_ARG(x) x
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rtquery.c,v 1.19 2007/09/16 18:42:02 ragge Exp $ */
|
||||
/* $NetBSD: rtquery.c,v 1.20 2007/12/15 19:44:47 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1993
|
||||
|
@ -53,7 +53,7 @@
|
|||
#include <bstring.h>
|
||||
#endif
|
||||
|
||||
#define UNUSED __attribute__((unused))
|
||||
#define UNUSED __unused
|
||||
#ifndef __RCSID
|
||||
#define __RCSID(_s) static const char rcsid[] UNUSED = _s
|
||||
#endif
|
||||
|
@ -64,7 +64,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1988, 1993\n"
|
|||
"The Regents of the University of California."
|
||||
" All rights reserved.\n");
|
||||
#ifdef __NetBSD__
|
||||
__RCSID("$NetBSD: rtquery.c,v 1.19 2007/09/16 18:42:02 ragge Exp $");
|
||||
__RCSID("$NetBSD: rtquery.c,v 1.20 2007/12/15 19:44:47 perry Exp $");
|
||||
#elif defined(__FreeBSD__)
|
||||
__RCSID("$FreeBSD$");
|
||||
#else
|
||||
|
@ -128,8 +128,8 @@ static char *default_argv[] = {localhost_str, 0};
|
|||
|
||||
static void rip_input(struct sockaddr_in*, int);
|
||||
static int out(const char *);
|
||||
static void trace_loop(char *argv[]) __attribute__((__noreturn__));
|
||||
static void query_loop(char *argv[], int) __attribute__((__noreturn__));
|
||||
static void trace_loop(char *argv[]) __dead;
|
||||
static void query_loop(char *argv[], int) __dead;
|
||||
static int getnet(char *, struct netinfo *);
|
||||
static u_int std_mask(u_int);
|
||||
static int parse_quote(char **, const char *, char *, char *, int);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: scan_ffs.c,v 1.19 2007/10/06 07:21:02 xtraeme Exp $ */
|
||||
/* $NetBSD: scan_ffs.c,v 1.20 2007/12/15 19:44:47 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2005-2007 Juan Romero Pardines
|
||||
|
@ -33,7 +33,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: scan_ffs.c,v 1.19 2007/10/06 07:21:02 xtraeme Exp $");
|
||||
__RCSID("$NetBSD: scan_ffs.c,v 1.20 2007/12/15 19:44:47 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -144,7 +144,7 @@ static int ffs_checkver(struct sblockinfo *);
|
|||
static void lfs_printpart(struct sblockinfo *, int, int);
|
||||
static void lfs_scan(struct sblockinfo *, int);
|
||||
/* common functions */
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
static int scan_disk(int, daddr_t, daddr_t, int);
|
||||
|
||||
static int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: shutdown.c,v 1.48 2007/07/10 23:50:35 jnemeth Exp $ */
|
||||
/* $NetBSD: shutdown.c,v 1.49 2007/12/15 19:44:47 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1990, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)shutdown.c 8.4 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: shutdown.c,v 1.48 2007/07/10 23:50:35 jnemeth Exp $");
|
||||
__RCSID("$NetBSD: shutdown.c,v 1.49 2007/12/15 19:44:47 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -95,17 +95,17 @@ static const char *whom;
|
|||
static char mbuf[BUFSIZ];
|
||||
static char *bootstr;
|
||||
|
||||
static void badtime(void) __attribute__((__noreturn__));
|
||||
static void die_you_gravy_sucking_pig_dog(void) __attribute__((__noreturn__));
|
||||
static void badtime(void) __dead;
|
||||
static void die_you_gravy_sucking_pig_dog(void) __dead;
|
||||
static void doitfast(void);
|
||||
void dorcshutdown(void);
|
||||
static void finish(int) __attribute__((__noreturn__));
|
||||
static void finish(int) __dead;
|
||||
static void getoffset(char *);
|
||||
static void loop(void);
|
||||
static void nolog(void);
|
||||
static void timeout(int);
|
||||
static void timewarn(time_t);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: umount.c,v 1.40 2007/07/17 20:17:52 christos Exp $ */
|
||||
/* $NetBSD: umount.c,v 1.41 2007/12/15 19:44:48 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1980, 1989, 1993
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)umount.c 8.8 (Berkeley) 5/8/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: umount.c,v 1.40 2007/07/17 20:17:52 christos Exp $");
|
||||
__RCSID("$NetBSD: umount.c,v 1.41 2007/12/15 19:44:48 perry Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -81,7 +81,7 @@ static int xdr_dir(XDR *, char *);
|
|||
static int fflag;
|
||||
static char *getmntname(const char *, mntwhat, char **);
|
||||
static int umountfs(const char *, const char **, int);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: wsconsctl.c,v 1.15 2007/12/15 16:32:06 perry Exp $ */
|
||||
/* $NetBSD: wsconsctl.c,v 1.16 2007/12/15 19:44:48 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
|
||||
|
@ -57,7 +57,7 @@ extern int keyboard_field_tab_len;
|
|||
extern int mouse_field_tab_len;
|
||||
extern int display_field_tab_len;
|
||||
|
||||
static void usage(const char *) __attribute__((__noreturn__));
|
||||
static void usage(const char *) __dead;
|
||||
|
||||
static void
|
||||
usage(const char *msg)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: play.c,v 1.47 2007/10/05 07:27:41 lukem Exp $ */
|
||||
/* $NetBSD: play.c,v 1.48 2007/12/15 19:44:48 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 Matthew R. Green
|
||||
|
@ -30,7 +30,7 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: play.c,v 1.47 2007/10/05 07:27:41 lukem Exp $");
|
||||
__RCSID("$NetBSD: play.c,v 1.48 2007/12/15 19:44:48 perry Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -58,7 +58,7 @@ void usage(void);
|
|||
void play(char *);
|
||||
void play_fd(const char *, int);
|
||||
ssize_t audioctl_write_fromhdr(void *, size_t, int, size_t *, const char *);
|
||||
void cleanup(int) __attribute__((__noreturn__));
|
||||
void cleanup(int) __dead;
|
||||
|
||||
audio_info_t info;
|
||||
int volume;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: record.c,v 1.44 2007/10/05 07:27:41 lukem Exp $ */
|
||||
/* $NetBSD: record.c,v 1.45 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999, 2002 Matthew R. Green
|
||||
|
@ -34,7 +34,7 @@
|
|||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: record.c,v 1.44 2007/10/05 07:27:41 lukem Exp $");
|
||||
__RCSID("$NetBSD: record.c,v 1.45 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -83,7 +83,7 @@ void (*conv_func) (u_char *, int);
|
|||
void usage (void);
|
||||
int main (int, char *[]);
|
||||
int timeleft (struct timeval *, struct timeval *);
|
||||
void cleanup (int) __attribute__((__noreturn__));
|
||||
void cleanup (int) __dead;
|
||||
int write_header_sun (void **, size_t *, int *);
|
||||
int write_header_wav (void **, size_t *, int *);
|
||||
void write_header (void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: calendar.c,v 1.41 2006/10/07 07:12:01 elad Exp $ */
|
||||
/* $NetBSD: calendar.c,v 1.42 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)calendar.c 8.4 (Berkeley) 1/7/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: calendar.c,v 1.41 2006/10/07 07:12:01 elad Exp $");
|
||||
__RCSID("$NetBSD: calendar.c,v 1.42 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -117,7 +117,7 @@ static int getmonth(char *);
|
|||
static int isnow(char *);
|
||||
static FILE *opencal(void);
|
||||
static void settime(void);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(argc, argv)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cap_mkdb.c,v 1.22 2005/04/13 04:50:22 christos Exp $ */
|
||||
/* $NetBSD: cap_mkdb.c,v 1.23 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1992, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)cap_mkdb.c 8.2 (Berkeley) 4/27/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: cap_mkdb.c,v 1.22 2005/04/13 04:50:22 christos Exp $");
|
||||
__RCSID("$NetBSD: cap_mkdb.c,v 1.23 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/param.h>
|
||||
|
@ -57,7 +57,7 @@ __RCSID("$NetBSD: cap_mkdb.c,v 1.22 2005/04/13 04:50:22 christos Exp $");
|
|||
|
||||
static void db_build(const char **);
|
||||
static void dounlink(void);
|
||||
static void usage(void) __attribute__((__unused__));
|
||||
static void usage(void) __unused;
|
||||
static int count_records(char **);
|
||||
|
||||
static DB *capdbp;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: column.c,v 1.16 2006/12/09 21:42:40 christos Exp $ */
|
||||
/* $NetBSD: column.c,v 1.17 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1994
|
||||
|
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)column.c 8.4 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: column.c,v 1.16 2006/12/09 21:42:40 christos Exp $");
|
||||
__RCSID("$NetBSD: column.c,v 1.17 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -63,7 +63,7 @@ static void input(FILE *);
|
|||
static void maketbl(void);
|
||||
static void print(void);
|
||||
static void r_columnate(void);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
static int termwidth = 80; /* default terminal width */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: main.c,v 1.24 2007/11/09 05:21:30 cube Exp $ */
|
||||
/* $NetBSD: main.c,v 1.25 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
|
@ -96,7 +96,7 @@ static struct nvlist **nextmkopt;
|
|||
static struct nvlist **nextappmkopt;
|
||||
static struct nvlist **nextfsopt;
|
||||
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
static void dependopts(void);
|
||||
static void do_depend(struct nvlist *);
|
||||
static void stop(void);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: csplit.c,v 1.3 2007/10/05 07:27:42 lukem Exp $ */
|
||||
/* $NetBSD: csplit.c,v 1.4 2007/12/15 19:44:49 perry Exp $ */
|
||||
/* $FreeBSD: src/usr.bin/csplit/csplit.c,v 1.9 2004/03/22 11:15:03 tjr Exp$ */
|
||||
|
||||
/*-
|
||||
|
@ -47,7 +47,7 @@
|
|||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: csplit.c,v 1.3 2007/10/05 07:27:42 lukem Exp $");
|
||||
__RCSID("$NetBSD: csplit.c,v 1.4 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
|
@ -73,7 +73,7 @@ static char *getline(void);
|
|||
static void handlesig(int);
|
||||
static FILE *newfile(void);
|
||||
static void toomuch(FILE *, long);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
/*
|
||||
* Command line options
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cut.c,v 1.23 2007/07/02 18:41:03 christos Exp $ */
|
||||
/* $NetBSD: cut.c,v 1.24 2007/12/15 19:44:49 perry Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
|
@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)cut.c 8.3 (Berkeley) 5/4/95";
|
||||
#endif
|
||||
__RCSID("$NetBSD: cut.c,v 1.23 2007/07/02 18:41:03 christos Exp $");
|
||||
__RCSID("$NetBSD: cut.c,v 1.24 2007/12/15 19:44:49 perry Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <ctype.h>
|
||||
|
@ -69,7 +69,7 @@ static void b_cut(FILE *, const char *);
|
|||
static void c_cut(FILE *, const char *);
|
||||
static void f_cut(FILE *, const char *);
|
||||
static void get_list(char *);
|
||||
static void usage(void) __attribute__((__noreturn__));
|
||||
static void usage(void) __dead;
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue