Module Name:    src
Committed By:   joerg
Date:           Mon Aug 29 14:08:39 UTC 2011

Modified Files:
        src/usr.bin/chpass: chpass.c chpass.h

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/chpass/chpass.c
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/chpass/chpass.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/chpass/chpass.c
diff -u src/usr.bin/chpass/chpass.c:1.33 src/usr.bin/chpass/chpass.c:1.34
--- src/usr.bin/chpass/chpass.c:1.33	Mon Jul 21 14:19:21 2008
+++ src/usr.bin/chpass/chpass.c	Mon Aug 29 14:08:39 2011
@@ -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)
 {
 

Index: src/usr.bin/chpass/chpass.h
diff -u src/usr.bin/chpass/chpass.h:1.12 src/usr.bin/chpass/chpass.h:1.13
--- src/usr.bin/chpass/chpass.h:1.12	Thu Feb 17 17:09:48 2005
+++ src/usr.bin/chpass/chpass.h	Mon Aug 29 14:08:39 2011
@@ -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);

Reply via email to