Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Oct 2008 21:11:09 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r183987 - head/usr.sbin/setfib
Message-ID:  <200810172111.m9HLB9A7097897@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)
 {
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810172111.m9HLB9A7097897>