Skip to content

Commit 00df980

Browse files
committed
Use __dead
1 parent 9345843 commit 00df980

File tree

44 files changed

+130
-130
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+130
-130
lines changed

sbin/bioctl/bioctl.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: bioctl.c,v 1.14 2011/05/25 15:34:19 joerg Exp $ */
1+
/* $NetBSD: bioctl.c,v 1.15 2011/08/29 14:34:58 joerg Exp $ */
22
/* $OpenBSD: bioctl.c,v 1.52 2007/03/20 15:26:06 jmc Exp $ */
33

44
/*
@@ -31,7 +31,7 @@
3131
#include <sys/cdefs.h>
3232

3333
#ifndef lint
34-
__RCSID("$NetBSD: bioctl.c,v 1.14 2011/05/25 15:34:19 joerg Exp $");
34+
__RCSID("$NetBSD: bioctl.c,v 1.15 2011/08/29 14:34:58 joerg Exp $");
3535
#endif
3636

3737
#include <sys/types.h>
@@ -76,7 +76,7 @@ struct locator {
7676
int lun;
7777
};
7878

79-
static void usage(void);
79+
__dead static void usage(void);
8080
static void bio_alarm(int, int, char **);
8181
static void bio_show_common(int, int, char **);
8282
static int bio_show_volumes(struct biotmp *);

sbin/cgdconfig/cgdconfig.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: cgdconfig.c,v 1.32 2010/12/14 17:46:21 pooka Exp $ */
1+
/* $NetBSD: cgdconfig.c,v 1.33 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
3333
#ifndef lint
3434
__COPYRIGHT("@(#) Copyright (c) 2002, 2003\
3535
The NetBSD Foundation, Inc. All rights reserved.");
36-
__RCSID("$NetBSD: cgdconfig.c,v 1.32 2010/12/14 17:46:21 pooka Exp $");
36+
__RCSID("$NetBSD: cgdconfig.c,v 1.33 2011/08/29 14:34:59 joerg Exp $");
3737
#endif
3838

3939
#include <err.h>
@@ -114,7 +114,7 @@ static int verify_disklabel(int);
114114
static int verify_ffs(int);
115115
static int verify_reenter(struct params *);
116116

117-
static void usage(void);
117+
__dead static void usage(void);
118118

119119
/* Verbose Framework */
120120
unsigned verbose = 0;

sbin/chown/chown.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: chown.c,v 1.4 2011/01/13 22:28:36 haad Exp $ */
1+
/* $NetBSD: chown.c,v 1.5 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*
44
* Copyright (c) 1988, 1993, 1994, 2003
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1993, 1994, 2003\
3939
#if 0
4040
static char sccsid[] = "@(#)chown.c 8.8 (Berkeley) 4/4/94";
4141
#else
42-
__RCSID("$NetBSD: chown.c,v 1.4 2011/01/13 22:28:36 haad Exp $");
42+
__RCSID("$NetBSD: chown.c,v 1.5 2011/08/29 14:34:59 joerg Exp $");
4343
#endif
4444
#endif /* not lint */
4545

@@ -62,7 +62,7 @@ __RCSID("$NetBSD: chown.c,v 1.4 2011/01/13 22:28:36 haad Exp $");
6262
static void a_gid(const char *);
6363
static void a_uid(const char *);
6464
static id_t id(const char *, const char *);
65-
static void usage(void);
65+
__dead static void usage(void);
6666

6767
static uid_t uid;
6868
static gid_t gid;

sbin/disklabel/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: main.c,v 1.24 2011/01/06 21:39:01 apb Exp $ */
1+
/* $NetBSD: main.c,v 1.25 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*
44
* Copyright (c) 2006 The NetBSD Foundation, Inc.
@@ -76,7 +76,7 @@ __COPYRIGHT("@(#) Copyright (c) 1987, 1993\
7676
static char sccsid[] = "@(#)disklabel.c 8.4 (Berkeley) 5/4/95";
7777
/* from static char sccsid[] = "@(#)disklabel.c 1.2 (Symmetric) 11/28/85"; */
7878
#else
79-
__RCSID("$NetBSD: main.c,v 1.24 2011/01/06 21:39:01 apb Exp $");
79+
__RCSID("$NetBSD: main.c,v 1.25 2011/08/29 14:34:59 joerg Exp $");
8080
#endif
8181
#endif /* not lint */
8282

@@ -173,7 +173,7 @@ static int editit(const char *);
173173
static char *skip(char *);
174174
static char *word(char *);
175175
static int getasciilabel(FILE *, struct disklabel *);
176-
static void usage(void);
176+
__dead static void usage(void);
177177
static int qsort_strcmp(const void *, const void *);
178178
static int getulong(const char *, char, char **,
179179
unsigned long *, unsigned long);

sbin/dmesg/dmesg.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dmesg.c,v 1.26 2008/07/20 01:20:22 lukem Exp $ */
1+
/* $NetBSD: dmesg.c,v 1.27 2011/08/29 14:34:59 joerg Exp $ */
22
/*-
33
* Copyright (c) 1991, 1993
44
* The Regents of the University of California. All rights reserved.
@@ -38,7 +38,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\
3838
#if 0
3939
static char sccsid[] = "@(#)dmesg.c 8.1 (Berkeley) 6/5/93";
4040
#else
41-
__RCSID("$NetBSD: dmesg.c,v 1.26 2008/07/20 01:20:22 lukem Exp $");
41+
__RCSID("$NetBSD: dmesg.c,v 1.27 2011/08/29 14:34:59 joerg Exp $");
4242
#endif
4343
#endif /* not lint */
4444

@@ -57,13 +57,13 @@ __RCSID("$NetBSD: dmesg.c,v 1.26 2008/07/20 01:20:22 lukem Exp $");
5757
#include <vis.h>
5858

5959
#ifndef SMALL
60-
struct nlist nl[] = {
60+
static struct nlist nl[] = {
6161
#define X_MSGBUF 0
6262
{ .n_name = "_msgbufp" },
6363
{ .n_name = NULL },
6464
};
6565

66-
void usage(void);
66+
__dead static void usage(void);
6767

6868
#define KREAD(addr, var) \
6969
kvm_read(kd, addr, &var, sizeof(var)) != sizeof(var)
@@ -193,7 +193,7 @@ main(int argc, char *argv[])
193193
}
194194

195195
#ifndef SMALL
196-
void
196+
static void
197197
usage(void)
198198
{
199199

sbin/drvctl/drvctl.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: drvctl.c,v 1.12 2011/08/07 13:00:35 jmcneill Exp $ */
1+
/* $NetBSD: drvctl.c,v 1.13 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*
44
* Copyright (c) 2004
@@ -43,7 +43,7 @@
4343
(((mode) == 'd' || (mode) == 'r') ? O_RDWR \
4444
: O_RDONLY)
4545

46-
static void usage(void);
46+
__dead static void usage(void);
4747
static void extract_property(prop_dictionary_t, const char *);
4848
static void list_children(int, char *, bool, bool, int);
4949

sbin/dump/dumprmt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $ */
1+
/* $NetBSD: dumprmt.c,v 1.34 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 1980, 1993
@@ -34,7 +34,7 @@
3434
#if 0
3535
static char sccsid[] = "@(#)dumprmt.c 8.3 (Berkeley) 4/28/95";
3636
#else
37-
__RCSID("$NetBSD: dumprmt.c,v 1.33 2009/04/11 07:55:35 lukem Exp $");
37+
__RCSID("$NetBSD: dumprmt.c,v 1.34 2011/08/29 14:34:59 joerg Exp $");
3838
#endif
3939
#endif /* not lint */
4040

@@ -75,7 +75,7 @@ static char *rmtpeer;
7575

7676
static int okname(char *);
7777
static int rmtcall(const char *, const char *, int);
78-
static void rmtconnaborted(int);
78+
__dead static void rmtconnaborted(int);
7979
static int rmtgetb(void);
8080
static void rmtgetconn(void);
8181
static void rmtgets(char *, int);

sbin/fsck_ffs/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: main.c,v 1.79 2011/06/09 19:57:52 christos Exp $ */
1+
/* $NetBSD: main.c,v 1.80 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*
44
* Copyright (c) 1980, 1986, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1993\
3939
#if 0
4040
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 5/14/95";
4141
#else
42-
__RCSID("$NetBSD: main.c,v 1.79 2011/06/09 19:57:52 christos Exp $");
42+
__RCSID("$NetBSD: main.c,v 1.80 2011/08/29 14:34:59 joerg Exp $");
4343
#endif
4444
#endif /* not lint */
4545

@@ -75,7 +75,7 @@ volatile sig_atomic_t returntosingle = 0;
7575

7676
static int argtoi(int, const char *, const char *, int);
7777
static int checkfilesys(const char *, const char *, int);
78-
static void usage(void);
78+
__dead static void usage(void);
7979

8080
int
8181
main(int argc, char *argv[])

sbin/fsdb/fsdb.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: fsdb.c,v 1.42 2011/08/14 12:30:04 christos Exp $ */
1+
/* $NetBSD: fsdb.c,v 1.43 2011/08/29 14:34:59 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
3131

3232
#include <sys/cdefs.h>
3333
#ifndef lint
34-
__RCSID("$NetBSD: fsdb.c,v 1.42 2011/08/14 12:30:04 christos Exp $");
34+
__RCSID("$NetBSD: fsdb.c,v 1.43 2011/08/29 14:34:59 joerg Exp $");
3535
#endif /* not lint */
3636

3737
#include <sys/types.h>
@@ -61,7 +61,7 @@ __RCSID("$NetBSD: fsdb.c,v 1.42 2011/08/14 12:30:04 christos Exp $");
6161
#include "fsck.h"
6262
#include "extern.h"
6363

64-
static void usage(void);
64+
__dead static void usage(void);
6565
static int cmdloop(void);
6666
static char *prompt(EditLine *);
6767
static int scannames(struct inodesc *);

sbin/ifconfig/ifconfig.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: ifconfig.c,v 1.225 2010/12/14 10:51:51 pooka Exp $ */
1+
/* $NetBSD: ifconfig.c,v 1.226 2011/08/29 14:35:00 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 1997, 1998, 2000 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
6363
#ifndef lint
6464
__COPYRIGHT("@(#) Copyright (c) 1983, 1993\
6565
The Regents of the University of California. All rights reserved.");
66-
__RCSID("$NetBSD: ifconfig.c,v 1.225 2010/12/14 10:51:51 pooka Exp $");
66+
__RCSID("$NetBSD: ifconfig.c,v 1.226 2011/08/29 14:35:00 joerg Exp $");
6767
#endif /* not lint */
6868

6969
#include <sys/param.h>
@@ -131,7 +131,7 @@ static int setlinkstr(prop_dictionary_t, prop_dictionary_t);
131131
static int unsetlinkstr(prop_dictionary_t, prop_dictionary_t);
132132
static void status(const struct sockaddr *, prop_dictionary_t,
133133
prop_dictionary_t);
134-
static void usage(void);
134+
__dead static void usage(void);
135135

136136
static const struct kwinst ifflagskw[] = {
137137
IFKW("arp", -IFF_NOARP)

0 commit comments

Comments
 (0)