summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2008-10-17 21:11:09 +0000
committerdelphij <delphij@FreeBSD.org>2008-10-17 21:11:09 +0000
commit979575ababf008e6b85b71676989c304b1bbf830 (patch)
tree86250727e53a37e2b2774ec37f2e16e373d4fd54 /usr.sbin
parentd3b188efba3a977ca714ec1cdb658d410f0e491b (diff)
downloadFreeBSD-src-979575ababf008e6b85b71676989c304b1bbf830.zip
FreeBSD-src-979575ababf008e6b85b71676989c304b1bbf830.tar.gz
- Use static for usage()
- Include necessary header files. setfib(1) should pass WARNS=6 with this changes.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/setfib/setfib.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/setfib/setfib.c b/usr.sbin/setfib/setfib.c
index dd7913d..f4b6c3d 100644
--- a/usr.sbin/setfib/setfib.c
+++ b/usr.sbin/setfib/setfib.c
@@ -33,15 +33,17 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
-
+#include <ctype.h>
+#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <sys/socket.h>
#include <sys/sysctl.h>
-void usage(void);
+static void usage(void);
int
main(int argc, char *argv[])
@@ -93,7 +95,7 @@ main(int argc, char *argv[])
err(errno == ENOENT ? 127 : 126, "%s", *argv);
}
-void
+static void
usage(void)
{
OpenPOWER on IntegriCloud