Source-Changes-HG archive

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

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



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

description:
Use __dead

diffstat:

 usr.bin/cmp/cmp.c    |  6 +++---
 usr.bin/cmp/extern.h |  8 ++++----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 14596e2f00da -r 7f61234c5812 usr.bin/cmp/cmp.c
--- a/usr.bin/cmp/cmp.c Mon Aug 29 14:12:29 2011 +0000
+++ b/usr.bin/cmp/cmp.c Mon Aug 29 14:14:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmp.c,v 1.17 2009/04/11 12:16:12 lukem Exp $   */
+/*     $NetBSD: cmp.c,v 1.18 2011/08/29 14:14:11 joerg Exp $   */
 
 /*
  * Copyright (c) 1987, 1990, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)cmp.c      8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: cmp.c,v 1.17 2009/04/11 12:16:12 lukem Exp $");
+__RCSID("$NetBSD: cmp.c,v 1.18 2011/08/29 14:14:11 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -59,7 +59,7 @@
 
 int    lflag, sflag;
 
-static void usage(void);
+__dead static void usage(void);
 
 int
 main(int argc, char *argv[])
diff -r 14596e2f00da -r 7f61234c5812 usr.bin/cmp/extern.h
--- a/usr.bin/cmp/extern.h      Mon Aug 29 14:12:29 2011 +0000
+++ b/usr.bin/cmp/extern.h      Mon Aug 29 14:14:11 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.8 2009/04/11 12:16:12 lukem Exp $ */
+/*     $NetBSD: extern.h,v 1.9 2011/08/29 14:14:11 joerg Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -37,8 +37,8 @@
 
 void   c_regular(int, const char *, off_t, off_t, int, const char *, off_t, off_t);
 void   c_special(int, const char *, off_t, int, const char *, off_t);
-void   diffmsg(const char *, const char *, off_t, off_t);
-void   eofmsg(const char *, off_t, off_t);
-void   errmsg(const char *, off_t, off_t);
+__dead void    diffmsg(const char *, const char *, off_t, off_t);
+__dead void    eofmsg(const char *, off_t, off_t);
+__dead void    errmsg(const char *, off_t, off_t);
 
 extern int lflag, sflag;



Home | Main Index | Thread Index | Old Index