summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/lptcontrol/Makefile2
-rw-r--r--usr.sbin/lptcontrol/lptcontrol.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/lptcontrol/Makefile b/usr.sbin/lptcontrol/Makefile
index d4e0c96..f49160e 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 7d71cd5..ee4d0dd 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) {
OpenPOWER on IntegriCloud