Source-Changes-HG archive

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

[src/trunk]: src/usr.bin static + __dead



details:   https://anonhg.NetBSD.org/src/rev/6b78eede2014
branches:  trunk
changeset: 768953:6b78eede2014
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 29 14:05:08 2011 +0000

description:
static + __dead

diffstat:

 usr.bin/chflags/chflags.c |   8 ++++----
 usr.bin/chpass/chpass.c   |  16 ++++++++--------
 usr.bin/chpass/chpass.h   |   4 ++--
 3 files changed, 14 insertions(+), 14 deletions(-)

diffs (111 lines):

diff -r c9f573673206 -r 6b78eede2014 usr.bin/chflags/chflags.c
--- a/usr.bin/chflags/chflags.c Mon Aug 29 14:00:54 2011 +0000
+++ b/usr.bin/chflags/chflags.c Mon Aug 29 14:05:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chflags.c,v 1.15 2008/07/21 14:19:21 lukem Exp $       */
+/*     $NetBSD: chflags.c,v 1.16 2011/08/29 14:05:08 joerg Exp $       */
 
 /*
  * Copyright (c) 1992, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "from: @(#)chflags.c    8.5 (Berkeley) 4/1/94";
 #else
-__RCSID("$NetBSD: chflags.c,v 1.15 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: chflags.c,v 1.16 2011/08/29 14:05:08 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -55,7 +55,7 @@
 #include <unistd.h>
 #include <util.h>
 
-void   usage(void);
+__dead static void     usage(void);
 
 int
 main(int argc, char *argv[])
@@ -191,7 +191,7 @@
        exit(rval);
 }
 
-void
+static void
 usage(void)
 {
 
diff -r c9f573673206 -r 6b78eede2014 usr.bin/chpass/chpass.c
--- a/usr.bin/chpass/chpass.c   Mon Aug 29 14:00:54 2011 +0000
+++ b/usr.bin/chpass/chpass.c   Mon Aug 29 14:05:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chpass.c,v 1.33 2008/07/21 14:19:21 lukem Exp $        */
+/*     $NetBSD: chpass.c,v 1.34 2011/08/29 14:08:39 joerg Exp $        */
 
 /*-
  * Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)chpass.c   8.4 (Berkeley) 4/2/94";
 #else 
-__RCSID("$NetBSD: chpass.c,v 1.33 2008/07/21 14:19:21 lukem Exp $");
+__RCSID("$NetBSD: chpass.c,v 1.34 2011/08/29 14:08:39 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -73,9 +73,9 @@
 extern int _yp_check(char **); /* buried deep inside libc */
 #endif
 
-void   baduser(void);
-void   cleanup(void);
-void   usage(void);
+__dead static void     baduser(void);
+static void    cleanup(void);
+__dead static void     usage(void);
 
 int
 main(int argc, char **argv)
@@ -290,14 +290,14 @@
        exit(0);
 }
 
-void
+static void
 baduser(void)
 {
 
        errx(1, "%s", strerror(EACCES));
 }
 
-void
+static void
 usage(void)
 {
 
@@ -308,7 +308,7 @@
        exit(1);
 }
 
-void
+static void
 cleanup(void)
 {
 
diff -r c9f573673206 -r 6b78eede2014 usr.bin/chpass/chpass.h
--- a/usr.bin/chpass/chpass.h   Mon Aug 29 14:00:54 2011 +0000
+++ b/usr.bin/chpass/chpass.h   Mon Aug 29 14:05:08 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: chpass.h,v 1.12 2005/02/17 17:09:48 xtraeme Exp $      */
+/*     $NetBSD: chpass.h,v 1.13 2011/08/29 14:08:39 joerg Exp $        */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -72,7 +72,7 @@
 #ifdef YP
 int    check_yppasswdd(void);
 int    pw_yp(struct passwd *, uid_t);
-void   yppw_error(const char *name, int, int);
+__dead void    yppw_error(const char *name, int, int);
 void   yppw_prompt(void);
 struct passwd *ypgetpwnam(const char *);
 struct passwd *ypgetpwuid(uid_t);



Home | Main Index | Thread Index | Old Index