aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2009-06-23 23:30:56 +0000
committerXin LI <delphij@FreeBSD.org>2009-06-23 23:30:56 +0000
commit431586a895fd61a880d939240d2b3dd1c24aac5d (patch)
treee5d809d0e2c1266a86e3c8d6156f305a500f138b /bin
parent75d2ea6c50e2b908724ff724dbe229da07604f2e (diff)
downloadsrc-431586a895fd61a880d939240d2b3dd1c24aac5d.tar.gz
src-431586a895fd61a880d939240d2b3dd1c24aac5d.zip
Staticify internal routines.
Notes
Notes: svn path=/head/; revision=194795
Diffstat (limited to 'bin')
-rw-r--r--bin/chflags/chflags.c4
-rw-r--r--bin/chmod/chmod.c4
-rw-r--r--bin/df/df.c2
-rw-r--r--bin/hostname/hostname.c4
4 files changed, 7 insertions, 7 deletions
diff --git a/bin/chflags/chflags.c b/bin/chflags/chflags.c
index 02137eb30c34..2c07db9becc4 100644
--- a/bin/chflags/chflags.c
+++ b/bin/chflags/chflags.c
@@ -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,
diff --git a/bin/chmod/chmod.c b/bin/chmod/chmod.c
index e96738898031..6736032466cc 100644
--- a/bin/chmod/chmod.c
+++ b/bin/chmod/chmod.c
@@ -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,
diff --git a/bin/df/df.c b/bin/df/df.c
index 49c2d9f1e1c6..be811a149428 100644
--- a/bin/df/df.c
+++ b/bin/df/df.c
@@ -476,7 +476,7 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp)
(void)printf("\n");
}
-void
+static void
addstat(struct statfs *totalfsp, struct statfs *statfsp)
{
uint64_t bsize;
diff --git a/bin/hostname/hostname.c b/bin/hostname/hostname.c
index 7aaca9ccda70..87136eb5f408 100644
--- a/bin/hostname/hostname.c
+++ b/bin/hostname/hostname.c
@@ -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)
{