svn commit: r219521 - head/tools/tools/cfi
Bruce Cran
brucec at FreeBSD.org
Fri Mar 11 18:48:29 UTC 2011
Author: brucec
Date: Fri Mar 11 18:48:28 2011
New Revision: 219521
URL: http://svn.freebsd.org/changeset/base/219521
Log:
Fix warnings and set WARNS to 6.
MFC after: 1 week
Modified:
head/tools/tools/cfi/Makefile
head/tools/tools/cfi/cfi.c
Modified: head/tools/tools/cfi/Makefile
==============================================================================
--- head/tools/tools/cfi/Makefile Fri Mar 11 18:46:11 2011 (r219520)
+++ head/tools/tools/cfi/Makefile Fri Mar 11 18:48:28 2011 (r219521)
@@ -3,5 +3,6 @@
PROG= cfi
BINDIR= /usr/local/bin
NO_MAN=
+WARNS?=6
.include <bsd.prog.mk>
Modified: head/tools/tools/cfi/cfi.c
==============================================================================
--- head/tools/tools/cfi/cfi.c Fri Mar 11 18:46:11 2011 (r219520)
+++ head/tools/tools/cfi/cfi.c Fri Mar 11 18:48:28 2011 (r219521)
@@ -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-head
mailing list