Author: delphij Date: Fri Oct 17 21:11:09 2008 New Revision: 183987 URL: http://svn.freebsd.org/changeset/base/183987
Log: - Use static for usage() - Include necessary header files. setfib(1) should pass WARNS=6 with this changes. Modified: head/usr.sbin/setfib/setfib.c Modified: head/usr.sbin/setfib/setfib.c ============================================================================== --- head/usr.sbin/setfib/setfib.c Fri Oct 17 20:11:28 2008 (r183986) +++ head/usr.sbin/setfib/setfib.c Fri Oct 17 21:11:09 2008 (r183987) @@ -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) { _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"