diff options
| author | Dima Dorfman <dd@FreeBSD.org> | 2001-06-24 18:43:33 +0000 |
|---|---|---|
| committer | Dima Dorfman <dd@FreeBSD.org> | 2001-06-24 18:43:33 +0000 |
| commit | 167ce4fb005015eb751409c9838051b28f44b524 (patch) | |
| tree | 6555bf60c8c7f9aff70d16260106871c96802964 | |
| parent | dfe60c7914683c0ec1bda29b9708371e06ed86dc (diff) | |
Notes
| -rw-r--r-- | usr.sbin/lptcontrol/Makefile | 2 | ||||
| -rw-r--r-- | usr.sbin/lptcontrol/lptcontrol.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lptcontrol/Makefile b/usr.sbin/lptcontrol/Makefile index d4e0c968daef..f49160ed18ee 100644 --- a/usr.sbin/lptcontrol/Makefile +++ b/usr.sbin/lptcontrol/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PROG= lptcontrol +WARNS?= 2 MAN= lptcontrol.8 -CFLAGS+= -Wall .include <bsd.prog.mk> diff --git a/usr.sbin/lptcontrol/lptcontrol.c b/usr.sbin/lptcontrol/lptcontrol.c index 7d71cd5663bf..ee4d0dd0ad9d 100644 --- a/usr.sbin/lptcontrol/lptcontrol.c +++ b/usr.sbin/lptcontrol/lptcontrol.c @@ -56,7 +56,7 @@ static const char rcsid[] = #define USE_EXT_MODE 2 #define USE_STD_MODE 3 -static void usage() +static void usage(void) { fprintf(stderr, "usage: lptcontrol -i | -p | -s | -e [-d device]\n"); exit(1); @@ -77,7 +77,7 @@ int main (int argc, char * argv[]) { int opt; int irq_status = IRQ_INVALID; - char *device = DEFAULT_DEVICE; + const char *device = DEFAULT_DEVICE; while((opt = getopt(argc, argv, "ipesd:")) != -1) switch(opt) { |
