diff options
author | dd <dd@FreeBSD.org> | 2001-06-26 22:11:13 +0000 |
---|---|---|
committer | dd <dd@FreeBSD.org> | 2001-06-26 22:11:13 +0000 |
commit | e9ec4f9449c4450e8cbbc012add4cbc1a01a53b3 (patch) | |
tree | b130978051d0c595798382b06e24aebc529e5812 | |
parent | ee8f9973586ab989946a66bc5a030d933e993888 (diff) | |
download | FreeBSD-src-e9ec4f9449c4450e8cbbc012add4cbc1a01a53b3.zip FreeBSD-src-e9ec4f9449c4450e8cbbc012add4cbc1a01a53b3.tar.gz |
Add appropriate includes and prototypes; staticize; set WARNS=2. Also
minor Makefile nits.
Submitted by: Mike Barcroft <mike@q9media.com>
-rw-r--r-- | usr.sbin/fdcontrol/Makefile | 5 | ||||
-rw-r--r-- | usr.sbin/fdcontrol/fdcontrol.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/usr.sbin/fdcontrol/Makefile b/usr.sbin/fdcontrol/Makefile index 62b5583..df18468 100644 --- a/usr.sbin/fdcontrol/Makefile +++ b/usr.sbin/fdcontrol/Makefile @@ -1,6 +1,7 @@ # $FreeBSD$ -PROG = fdcontrol -MAN = fdcontrol.8 +PROG= fdcontrol +WARNS?= 2 +MAN= fdcontrol.8 .include <bsd.prog.mk> diff --git a/usr.sbin/fdcontrol/fdcontrol.c b/usr.sbin/fdcontrol/fdcontrol.c index 6e522bd..e120059 100644 --- a/usr.sbin/fdcontrol/fdcontrol.c +++ b/usr.sbin/fdcontrol/fdcontrol.c @@ -30,14 +30,18 @@ static const char rcsid[] = "$FreeBSD$"; #endif /* not lint */ +#include <sys/fdcio.h> +#include <sys/file.h> + #include <err.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> -#include <sys/file.h> -#include <sys/fdcio.h> -int +static int getnumber(void); +static void usage(void); + +static int getnumber(void) { int i; @@ -50,7 +54,7 @@ getnumber(void) return i; } -void +static void usage(void) { fprintf(stderr, "usage: fdcontrol [-d 0|1] | [-s] device-node\n"); |