svn commit: r220703 - stable/8/tools/tools/cfi

Bruce Cran brucec at FreeBSD.org
Sat Apr 16 10:42:23 UTC 2011


Author: brucec
Date: Sat Apr 16 10:42:22 2011
New Revision: 220703
URL: http://svn.freebsd.org/changeset/base/220703

Log:
  MFC r219521:
  
  Fix warnings and set WARNS to 6.

Modified:
  stable/8/tools/tools/cfi/Makefile
  stable/8/tools/tools/cfi/cfi.c
Directory Properties:
  stable/8/tools/tools/cfi/   (props changed)

Modified: stable/8/tools/tools/cfi/Makefile
==============================================================================
--- stable/8/tools/tools/cfi/Makefile	Sat Apr 16 10:38:27 2011	(r220702)
+++ stable/8/tools/tools/cfi/Makefile	Sat Apr 16 10:42:22 2011	(r220703)
@@ -3,5 +3,6 @@
 PROG=	cfi
 BINDIR=	/usr/local/bin
 NO_MAN=
+WARNS?=6
 
 .include <bsd.prog.mk>

Modified: stable/8/tools/tools/cfi/cfi.c
==============================================================================
--- stable/8/tools/tools/cfi/cfi.c	Sat Apr 16 10:38:27 2011	(r220702)
+++ stable/8/tools/tools/cfi/cfi.c	Sat Apr 16 10:42:22 2011	(r220703)
@@ -38,9 +38,12 @@
 #include <sys/ioctl.h>
 #include <sys/cfictl.h>
 
-#include <stdio.h>
+#include <err.h>
 #include <getopt.h>
+#include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 const char *progname;
 const char *dvname;
@@ -48,8 +51,6 @@ const char *dvname;
 static void
 usage(void)
 {
-	int i;
-
 	fprintf(stderr, "usage: %s [-f device] op...\n", progname);
 	fprintf(stderr, "where op's are:\n");
 	fprintf(stderr, "fact\t\tread factory PR segment\n");


More information about the svn-src-all mailing list