diff options
author | delphij <delphij@FreeBSD.org> | 2008-10-17 21:11:09 +0000 |
---|---|---|
committer | delphij <delphij@FreeBSD.org> | 2008-10-17 21:11:09 +0000 |
commit | 979575ababf008e6b85b71676989c304b1bbf830 (patch) | |
tree | 86250727e53a37e2b2774ec37f2e16e373d4fd54 /usr.sbin | |
parent | d3b188efba3a977ca714ec1cdb658d410f0e491b (diff) | |
download | FreeBSD-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.c | 8 |
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) { |