Date: Fri, 11 Mar 2011 18:48:28 +0000 (UTC) From: Bruce Cran <brucec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r219521 - head/tools/tools/cfi Message-ID: <201103111848.p2BImS8K089972@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201103111848.p2BImS8K089972>