Date: Sat, 16 Apr 2011 10:42:23 +0000 (UTC) From: Bruce Cran <brucec@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r220703 - stable/8/tools/tools/cfi Message-ID: <201104161042.p3GAgN0I001975@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104161042.p3GAgN0I001975>