summaryrefslogtreecommitdiffstats
path: root/usr.bin/du
diff options
context:
space:
mode:
authormlaier <mlaier@FreeBSD.org>2008-11-04 19:23:48 +0000
committermlaier <mlaier@FreeBSD.org>2008-11-04 19:23:48 +0000
commitce3123c32448e7c506c8b99c4b56d21bd012f4c2 (patch)
tree19e05af7634f6b0aac386b03d7711b83340aa6ec /usr.bin/du
parent164a6176c3ebda3c239e9b962e29bb868b889309 (diff)
downloadFreeBSD-src-ce3123c32448e7c506c8b99c4b56d21bd012f4c2.zip
FreeBSD-src-ce3123c32448e7c506c8b99c4b56d21bd012f4c2.tar.gz
Declare functions and variables static and save a few byte. This is a
style(9)-change, too. Separate commit as it changes the object.
Diffstat (limited to 'usr.bin/du')
-rw-r--r--usr.bin/du/du.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/usr.bin/du/du.c b/usr.bin/du/du.c
index 1c242f7..7887a3a 100644
--- a/usr.bin/du/du.c
+++ b/usr.bin/du/du.c
@@ -73,12 +73,12 @@ struct ignentry {
static int linkchk(FTSENT *);
static void usage(void);
-void prthumanval(int64_t);
-void ignoreadd(const char *);
-void ignoreclean(void);
-int ignorep(FTSENT *);
+static void prthumanval(int64_t);
+static void ignoreadd(const char *);
+static void ignoreclean(void);
+static int ignorep(FTSENT *);
-int nodumpflag = 0;
+static int nodumpflag = 0;
int
main(int argc, char *argv[])
@@ -443,7 +443,7 @@ linkchk(FTSENT *p)
return (0);
}
-void
+static void
prthumanval(int64_t bytes)
{
char buf[5];
@@ -465,7 +465,7 @@ usage(void)
exit(EX_USAGE);
}
-void
+static void
ignoreadd(const char *mask)
{
struct ignentry *ign;
@@ -479,7 +479,7 @@ ignoreadd(const char *mask)
SLIST_INSERT_HEAD(&ignores, ign, next);
}
-void
+static void
ignoreclean(void)
{
struct ignentry *ign;
@@ -492,7 +492,7 @@ ignoreclean(void)
}
}
-int
+static int
ignorep(FTSENT *ent)
{
struct ignentry *ign;
OpenPOWER on IntegriCloud