Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Jun 2009 23:30:56 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194795 - in head/bin: chflags chmod df hostname
Message-ID:  <200906232330.n5NNUuhZ094996@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Tue Jun 23 23:30:56 2009
New Revision: 194795
URL: http://svn.freebsd.org/changeset/base/194795

Log:
  Staticify internal routines.

Modified:
  head/bin/chflags/chflags.c
  head/bin/chmod/chmod.c
  head/bin/df/df.c
  head/bin/hostname/hostname.c

Modified: head/bin/chflags/chflags.c
==============================================================================
--- head/bin/chflags/chflags.c	Tue Jun 23 23:27:35 2009	(r194794)
+++ head/bin/chflags/chflags.c	Tue Jun 23 23:30:56 2009	(r194795)
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
 #include <string.h>
 #include <unistd.h>
 
-void	usage(void);
+static void usage(void);
 
 int
 main(int argc, char *argv[])
@@ -196,7 +196,7 @@ main(int argc, char *argv[])
 	exit(rval);
 }
 
-void
+static void
 usage(void)
 {
 	(void)fprintf(stderr,

Modified: head/bin/chmod/chmod.c
==============================================================================
--- head/bin/chmod/chmod.c	Tue Jun 23 23:27:35 2009	(r194794)
+++ head/bin/chmod/chmod.c	Tue Jun 23 23:30:56 2009	(r194795)
@@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
 #include <string.h>
 #include <unistd.h>
 
-void usage(void);
+static void usage(void);
 
 int
 main(int argc, char *argv[])
@@ -212,7 +212,7 @@ done:	argv += optind;
 	exit(rval);
 }
 
-void
+static void
 usage(void)
 {
 	(void)fprintf(stderr,

Modified: head/bin/df/df.c
==============================================================================
--- head/bin/df/df.c	Tue Jun 23 23:27:35 2009	(r194794)
+++ head/bin/df/df.c	Tue Jun 23 23:30:56 2009	(r194795)
@@ -476,7 +476,7 @@ prtstat(struct statfs *sfsp, struct maxw
 	(void)printf("\n");
 }
 
-void
+static void
 addstat(struct statfs *totalfsp, struct statfs *statfsp)
 {
 	uint64_t bsize;

Modified: head/bin/hostname/hostname.c
==============================================================================
--- head/bin/hostname/hostname.c	Tue Jun 23 23:27:35 2009	(r194794)
+++ head/bin/hostname/hostname.c	Tue Jun 23 23:30:56 2009	(r194795)
@@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$");
 #include <string.h>
 #include <unistd.h>
 
-void usage(void);
+static void usage(void);
 
 int
 main(int argc, char *argv[])
@@ -96,7 +96,7 @@ main(int argc, char *argv[])
 	exit(0);
 }
 
-void
+static void
 usage(void)
 {
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906232330.n5NNUuhZ094996>