Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin Use __dead



details:   https://anonhg.NetBSD.org/src/rev/7c7058ab5e6c
branches:  trunk
changeset: 768959:7c7058ab5e6c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 29 14:24:03 2011 +0000

description:
Use __dead

diffstat:

 usr.bin/at/at.c             |  8 ++++----
 usr.bin/banner/banner.c     |  8 ++++----
 usr.bin/basename/basename.c |  6 +++---
 usr.bin/biff/biff.c         |  6 +++---
 usr.bin/btkey/btkey.c       |  6 +++---
 5 files changed, 17 insertions(+), 17 deletions(-)

diffs (146 lines):

diff -r 7e965ea918f0 -r 7c7058ab5e6c usr.bin/at/at.c
--- a/usr.bin/at/at.c   Mon Aug 29 14:22:46 2011 +0000
+++ b/usr.bin/at/at.c   Mon Aug 29 14:24:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: at.c,v 1.29 2011/08/14 13:41:17 christos Exp $ */
+/*     $NetBSD: at.c,v 1.30 2011/08/29 14:24:03 joerg Exp $    */
 
 /*
  *  at.c : Put file into atrun queue
@@ -72,7 +72,7 @@
 #if 0
 static char rcsid[] = "$OpenBSD: at.c,v 1.15 1998/06/03 16:20:26 deraadt Exp $";
 #else
-__RCSID("$NetBSD: at.c,v 1.29 2011/08/14 13:41:17 christos Exp $");
+__RCSID("$NetBSD: at.c,v 1.30 2011/08/29 14:24:03 joerg Exp $");
 #endif
 #endif
 
@@ -91,8 +91,8 @@
 
 /* Function declarations */
 
-static void sigc       (int);
-static void alarmc     (int);
+__dead static void sigc        (int);
+__dead static void alarmc      (int);
 static char *cwdname   (void);
 static int  nextjob    (void);
 static void writefile  (time_t, unsigned char);
diff -r 7e965ea918f0 -r 7c7058ab5e6c usr.bin/banner/banner.c
--- a/usr.bin/banner/banner.c   Mon Aug 29 14:22:46 2011 +0000
+++ b/usr.bin/banner/banner.c   Mon Aug 29 14:24:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: banner.c,v 1.12 2008/07/21 14:19:21 lukem Exp $        */
+/*     $NetBSD: banner.c,v 1.13 2011/08/29 14:24:03 joerg Exp $        */
 
 /*
  *     Changes for banner(1)
@@ -58,7 +58,7 @@
 #if 0
 static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94";
 #else
-__RCSID("$NetBSD: banner.c,v 1.12 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: banner.c,v 1.13 2011/08/29 14:24:03 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -82,7 +82,7 @@
 static int     dropit (int);
 static void    scan_out (int, char *, int);
 static char   *scnline (int, char *, int);
-static void    usage(void);
+__dead static  void    usage(void);
 
 /* the char gen code below is lifted from lpd */
 
@@ -202,7 +202,7 @@
        exit(0);
 }
 
-void
+static void
 usage(void)
 {
     fprintf(stderr, "usage: %s [-f fgchar] [-b bgchar] [-l] message...\n",
diff -r 7e965ea918f0 -r 7c7058ab5e6c usr.bin/basename/basename.c
--- a/usr.bin/basename/basename.c       Mon Aug 29 14:22:46 2011 +0000
+++ b/usr.bin/basename/basename.c       Mon Aug 29 14:24:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: basename.c,v 1.14 2008/07/21 14:19:21 lukem Exp $      */
+/*     $NetBSD: basename.c,v 1.15 2011/08/29 14:24:03 joerg Exp $      */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)basename.c 8.4 (Berkeley) 5/4/95";
 #endif
-__RCSID("$NetBSD: basename.c,v 1.14 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: basename.c,v 1.15 2011/08/29 14:24:03 joerg Exp $");
 #endif /* not lint */
 
 #include <err.h>
@@ -50,7 +50,7 @@
 #include <string.h>
 #include <unistd.h>
 
-static void usage(void);
+__dead static void usage(void);
 
 int
 main(int argc, char **argv)
diff -r 7e965ea918f0 -r 7c7058ab5e6c usr.bin/biff/biff.c
--- a/usr.bin/biff/biff.c       Mon Aug 29 14:22:46 2011 +0000
+++ b/usr.bin/biff/biff.c       Mon Aug 29 14:24:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: biff.c,v 1.10 2008/07/21 14:19:21 lukem Exp $  */
+/*     $NetBSD: biff.c,v 1.11 2011/08/29 14:24:03 joerg Exp $  */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)biff.c     8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: biff.c,v 1.10 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: biff.c,v 1.11 2011/08/29 14:24:03 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,7 +53,7 @@
 #include <string.h>
 #include <unistd.h>
 
-static void usage(void);
+__dead static void usage(void);
 
 int
 main(int argc, char *argv[])
diff -r 7e965ea918f0 -r 7c7058ab5e6c usr.bin/btkey/btkey.c
--- a/usr.bin/btkey/btkey.c     Mon Aug 29 14:22:46 2011 +0000
+++ b/usr.bin/btkey/btkey.c     Mon Aug 29 14:24:03 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $ */
+/*     $NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $  */
 
 /*-
  * Copyright (c) 2007 Iain Hibbert
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 __COPYRIGHT("@(#) Copyright (c) 2007 Iain Hibbert.  All rights reserved.");
-__RCSID("$NetBSD: btkey.c,v 1.3 2009/12/10 18:57:31 plunky Exp $");
+__RCSID("$NetBSD: btkey.c,v 1.4 2011/08/29 14:24:03 joerg Exp $");
 
 #include <bluetooth.h>
 #include <ctype.h>
@@ -42,7 +42,7 @@
 
 #include "btkey.h"
 
-static void usage(void);
+__dead static void usage(void);
 static bool scan_key(const char *);
 
 bdaddr_t laddr;



Home | Main Index | Thread Index | Old Index