diff options
author | brucec <brucec@FreeBSD.org> | 2011-03-11 18:48:28 +0000 |
---|---|---|
committer | brucec <brucec@FreeBSD.org> | 2011-03-11 18:48:28 +0000 |
commit | 80d4acd0619200749bd7f7a29aa1c013483087d5 (patch) | |
tree | 6400b0f009a3c934c2b27bb554e4a91efbc7d344 /tools/tools/cfi | |
parent | 2e64420c582436bf456f5922e23a7ac2a658b283 (diff) | |
download | FreeBSD-src-80d4acd0619200749bd7f7a29aa1c013483087d5.zip FreeBSD-src-80d4acd0619200749bd7f7a29aa1c013483087d5.tar.gz |
Fix warnings and set WARNS to 6.
MFC after: 1 week
Diffstat (limited to 'tools/tools/cfi')
-rw-r--r-- | tools/tools/cfi/Makefile | 1 | ||||
-rw-r--r-- | tools/tools/cfi/cfi.c | 7 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/tools/cfi/Makefile b/tools/tools/cfi/Makefile index 9e3bbef..34a95b6 100644 --- a/tools/tools/cfi/Makefile +++ b/tools/tools/cfi/Makefile @@ -3,5 +3,6 @@ PROG= cfi BINDIR= /usr/local/bin NO_MAN= +WARNS?=6 .include <bsd.prog.mk> diff --git a/tools/tools/cfi/cfi.c b/tools/tools/cfi/cfi.c index 5b20094..e80ac7f 100644 --- a/tools/tools/cfi/cfi.c +++ b/tools/tools/cfi/cfi.c @@ -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"); |