Module Name:    src
Committed By:   joerg
Date:           Thu Sep  1 13:37:33 UTC 2011

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

Log Message:
static + __dead


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/usr.bin/du/du.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/du/du.c
diff -u src/usr.bin/du/du.c:1.34 src/usr.bin/du/du.c:1.35
--- src/usr.bin/du/du.c:1.34	Thu Jul  8 20:52:22 2010
+++ src/usr.bin/du/du.c	Thu Sep  1 13:37:33 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: du.c,v 1.34 2010/07/08 20:52:22 rmind Exp $	*/
+/*	$NetBSD: du.c,v 1.35 2011/09/01 13:37:33 joerg Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993, 1994
@@ -42,7 +42,7 @@
 #if 0
 static char sccsid[] = "@(#)du.c	8.5 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: du.c,v 1.34 2010/07/08 20:52:22 rmind Exp $");
+__RCSID("$NetBSD: du.c,v 1.35 2011/09/01 13:37:33 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -61,12 +61,12 @@
 #include <unistd.h>
 #include <limits.h>
 
-int	linkchk(dev_t, ino_t);
-void	prstat(const char *, int64_t);
-void	usage(void);
+static int	linkchk(dev_t, ino_t);
+static void	prstat(const char *, int64_t);
+__dead static void	usage(void);
 
-int hflag;
-long blocksize;
+static int hflag;
+static long blocksize;
 
 int
 main(int argc, char *argv[])
@@ -248,7 +248,7 @@
 	exit(rval);
 }
 
-void
+static void
 prstat(const char *fname, int64_t blocks)
 {
 	if (hflag) {
@@ -265,7 +265,7 @@
 		    fname);
 }
 
-int
+static int
 linkchk(dev_t dev, ino_t ino)
 {
 	static struct entry {
@@ -340,7 +340,7 @@
 	return 0;
 }
 
-void
+static void
 usage(void)
 {
 

Reply via email to