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

Modified Files:
        src/usr.bin/cksum: cksum.c

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.bin/cksum/cksum.c

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/cksum/cksum.c
diff -u src/usr.bin/cksum/cksum.c:1.44 src/usr.bin/cksum/cksum.c:1.45
--- src/usr.bin/cksum/cksum.c:1.44	Fri Jan  2 09:42:51 2009
+++ src/usr.bin/cksum/cksum.c	Mon Aug 29 14:12:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: cksum.c,v 1.44 2009/01/02 09:42:51 lukem Exp $	*/
+/*	$NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -81,7 +81,7 @@
 #if 0
 static char sccsid[] = "@(#)cksum.c	8.2 (Berkeley) 4/28/95";
 #endif
-__RCSID("$NetBSD: cksum.c,v 1.44 2009/01/02 09:42:51 lukem Exp $");
+__RCSID("$NetBSD: cksum.c,v 1.45 2011/08/29 14:12:29 joerg Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -142,9 +142,9 @@
 	{ .progname = NULL, },
 };
 
-int	hash_digest_file(char *, const struct hash *, int);
-void	requirehash(const char *);
-void	usage(void);
+static int	hash_digest_file(char *, const struct hash *, int);
+__dead static void	requirehash(const char *);
+__dead static void	usage(void);
 
 int
 main(int argc, char **argv)
@@ -497,7 +497,7 @@
 	exit(rval);
 }
 
-int
+static int
 hash_digest_file(char *fn, const struct hash *hash, int normal)
 {
 	char *cp;
@@ -516,14 +516,14 @@
 	return 0;
 }
 
-void
+static void
 requirehash(const char *flg)
 {
 	warnx("%s flag requires `-a algorithm'", flg);
 	usage();
 }
 
-void
+static void
 usage(void)
 {
 	const char fileargs[] = "[file ... | -c [-w] [sumfile]]";

Reply via email to