Skip to content

Commit 7a9655e

Browse files
committed
Use __dead
1 parent 0ebb656 commit 7a9655e

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

usr.bin/at/at.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: at.c,v 1.29 2011/08/14 13:41:17 christos Exp $ */
1+
/* $NetBSD: at.c,v 1.30 2011/08/29 14:24:03 joerg Exp $ */
22

33
/*
44
* at.c : Put file into atrun queue
@@ -72,7 +72,7 @@ enum { ATQ, ATRM, AT, BATCH, CAT }; /* what program we want to run */
7272
#if 0
7373
static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $";
7474
#else
75-
__RCSID("$NetBSD: at.c,v 1.29 2011/08/14 13:41:17 christos Exp $");
75+
__RCSID("$NetBSD: at.c,v 1.30 2011/08/29 14:24:03 joerg Exp $");
7676
#endif
7777
#endif
7878

@@ -91,8 +91,8 @@ char atverify = 0; /* verify time instead of queuing job */
9191

9292
/* Function declarations */
9393

94-
static void sigc (int);
95-
static void alarmc (int);
94+
__dead static void sigc (int);
95+
__dead static void alarmc (int);
9696
static char *cwdname (void);
9797
static int nextjob (void);
9898
static void writefile (time_t, unsigned char);

usr.bin/banner/banner.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: banner.c,v 1.12 2008/07/21 14:19:21 lukem Exp $ */
1+
/* $NetBSD: banner.c,v 1.13 2011/08/29 14:24:03 joerg Exp $ */
22

33
/*
44
* Changes for banner(1)
@@ -58,7 +58,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\
5858
#if 0
5959
static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94";
6060
#else
61-
__RCSID("$NetBSD: banner.c,v 1.12 2008/07/21 14:19:21 lukem Exp $");
61+
__RCSID("$NetBSD: banner.c,v 1.13 2011/08/29 14:24:03 joerg Exp $");
6262
#endif
6363
#endif /* not lint */
6464

@@ -82,7 +82,7 @@ static int Drop = 0; /* 3 for the LPD font */
8282
static int dropit (int);
8383
static void scan_out (int, char *, int);
8484
static char *scnline (int, char *, int);
85-
static void usage(void);
85+
__dead static void usage(void);
8686

8787
/* the char gen code below is lifted from lpd */
8888

@@ -202,7 +202,7 @@ main(int argc, char **argv)
202202
exit(0);
203203
}
204204

205-
void
205+
static void
206206
usage(void)
207207
{
208208
fprintf(stderr, "usage: %s [-f fgchar] [-b bgchar] [-l] message...\n",

usr.bin/basename/basename.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: basename.c,v 1.14 2008/07/21 14:19:21 lukem Exp $ */
1+
/* $NetBSD: basename.c,v 1.15 2011/08/29 14:24:03 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 1991, 1993, 1994
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993, 1994\
3939
#if 0
4040
static char sccsid[] = "@(#)basename.c 8.4 (Berkeley) 5/4/95";
4141
#endif
42-
__RCSID("$NetBSD: basename.c,v 1.14 2008/07/21 14:19:21 lukem Exp $");
42+
__RCSID("$NetBSD: basename.c,v 1.15 2011/08/29 14:24:03 joerg Exp $");
4343
#endif /* not lint */
4444

4545
#include <err.h>
@@ -50,7 +50,7 @@ __RCSID("$NetBSD: basename.c,v 1.14 2008/07/21 14:19:21 lukem Exp $");
5050
#include <string.h>
5151
#include <unistd.h>
5252

53-
static void usage(void);
53+
__dead static void usage(void);
5454

5555
int
5656
main(int argc, char **argv)

usr.bin/biff/biff.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: biff.c,v 1.10 2008/07/21 14:19:21 lukem Exp $ */
1+
/* $NetBSD: biff.c,v 1.11 2011/08/29 14:24:03 joerg Exp $ */
22

33
/*
44
* Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\
3939
#if 0
4040
static char sccsid[] = "@(#)biff.c 8.1 (Berkeley) 6/6/93";
4141
#else
42-
__RCSID("$NetBSD: biff.c,v 1.10 2008/07/21 14:19:21 lukem Exp $");
42+
__RCSID("$NetBSD: biff.c,v 1.11 2011/08/29 14:24:03 joerg Exp $");
4343
#endif
4444
#endif /* not lint */
4545

@@ -53,7 +53,7 @@ __RCSID("$NetBSD: biff.c,v 1.10 2008/07/21 14:19:21 lukem Exp $");
5353
#include <string.h>
5454
#include <unistd.h>
5555

56-
static void usage(void);
56+
__dead static void usage(void);
5757

5858
int
5959
main(int argc, char *argv[])

usr.bin/btkey/btkey.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $ */
1+
/* $NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $ */
22

33
/*-
44
* Copyright (c) 2007 Iain Hibbert
@@ -29,7 +29,7 @@
2929

3030
#include <sys/cdefs.h>
3131
__COPYRIGHT("@(#) Copyright (c) 2007 Iain Hibbert. All rights reserved.");
32-
__RCSID("$NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $");
32+
__RCSID("$NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $");
3333

3434
#include <bluetooth.h>
3535
#include <ctype.h>
@@ -42,7 +42,7 @@ __RCSID("$NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $");
4242

4343
#include "btkey.h"
4444

45-
static void usage(void);
45+
__dead static void usage(void);
4646
static bool scan_key(const char *);
4747

4848
bdaddr_t laddr;

0 commit comments

Comments
 (0)