summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lptcontrol
diff options
context:
space:
mode:
authordd <dd@FreeBSD.org>2001-06-24 18:43:33 +0000
committerdd <dd@FreeBSD.org>2001-06-24 18:43:33 +0000
commitcee06e7ada06eb96d4ffe672a28694f86aed63d4 (patch)
tree6555bf60c8c7f9aff70d16260106871c96802964 /usr.sbin/lptcontrol
parent40a7f94cb90a79424a3ad3b483bf6f8f42d6b5ce (diff)
downloadFreeBSD-src-cee06e7ada06eb96d4ffe672a28694f86aed63d4.zip
FreeBSD-src-cee06e7ada06eb96d4ffe672a28694f86aed63d4.tar.gz
Constify, add a prototype, and set WARNS=2.
Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
Diffstat (limited to 'usr.sbin/lptcontrol')
-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