Fix warnings and set WARNS to 6.

MFC after:	1 week
This commit is contained in:
brucec 2011-03-11 18:48:28 +00:00
parent 2e64420c58
commit 80d4acd061
2 changed files with 5 additions and 3 deletions

View File

@ -3,5 +3,6 @@
PROG= cfi
BINDIR= /usr/local/bin
NO_MAN=
WARNS?=6
.include <bsd.prog.mk>

View File

@ -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");