summaryrefslogtreecommitdiff
path: root/usr.sbin/mopd/mopchk
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2006-04-29 16:26:57 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2006-04-29 16:26:57 +0000
commit57dd93e4e7b3aa19bad96b65e1df36af2e725b69 (patch)
treed89d9eaba5cb7b4bff4f5516b7958d0166cf6dca /usr.sbin/mopd/mopchk
parent657af46631787afef0ccb38c58cfa95066cdcf49 (diff)
Change the compile time option -DINFO into a runtime option to get ride
of some lint warnings. -moj
Diffstat (limited to 'usr.sbin/mopd/mopchk')
-rw-r--r--usr.sbin/mopd/mopchk/Makefile4
-rw-r--r--usr.sbin/mopd/mopchk/mopchk.c13
2 files changed, 8 insertions, 9 deletions
diff --git a/usr.sbin/mopd/mopchk/Makefile b/usr.sbin/mopd/mopchk/Makefile
index 3187edb9543..99f0b25eceb 100644
--- a/usr.sbin/mopd/mopchk/Makefile
+++ b/usr.sbin/mopd/mopchk/Makefile
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.3 2002/05/11 00:20:20 espie Exp $
+# $OpenBSD: Makefile,v 1.4 2006/04/29 16:26:56 maja Exp $
PROG= mopchk
SRCS= mopchk.c device.c version.c pf.c loop-bsd.c file.c
-CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../common -DINFO
+CFLAGS+= -I${.CURDIR} -I${.CURDIR}/.. -I${.CURDIR}/../common
CLEANFILES= version.c version.h
DPADD= ${LIBKVM}
LDADD= -lkvm
diff --git a/usr.sbin/mopd/mopchk/mopchk.c b/usr.sbin/mopd/mopchk/mopchk.c
index 883270a0952..4f5811b1710 100644
--- a/usr.sbin/mopd/mopchk/mopchk.c
+++ b/usr.sbin/mopd/mopchk/mopchk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mopchk.c,v 1.11 2006/04/17 10:30:31 maja Exp $ */
+/* $OpenBSD: mopchk.c,v 1.12 2006/04/29 16:26:56 maja Exp $ */
/*
* Copyright (c) 1995-96 Mats O Jansson. All rights reserved.
@@ -25,7 +25,7 @@
*/
#ifndef lint
-static const char rcsid[] = "$OpenBSD: mopchk.c,v 1.11 2006/04/17 10:30:31 maja Exp $";
+static const char rcsid[] = "$OpenBSD: mopchk.c,v 1.12 2006/04/29 16:26:56 maja Exp $";
#endif
/*
@@ -42,8 +42,7 @@ static const char rcsid[] = "$OpenBSD: mopchk.c,v 1.11 2006/04/17 10:30:31 maja
#include "common/file.h"
/*
- * The list of all interfaces that are being listened to. rarp_loop()
- * "selects" on the descriptors in this list.
+ * The list of all interfaces that are being listened to.
*/
struct if_info *iflist;
@@ -127,8 +126,8 @@ main(argc, argv)
} else {
err = CheckAOutFile(fd);
if (err == 0) {
- if (GetAOutFileInfo(fd, 0, 0, 0, 0,
- 0, 0, 0, 0, &aout) < 0) {
+ if (GetAOutFileInfo(fd, 0, 0, 0, 0, 0, 0, 0, 0,
+ &aout, INFO_PRINT) < 0) {
printf("Some failure in GetAOutFileInfo\n");
aout = -1;
}
@@ -138,7 +137,7 @@ main(argc, argv)
if (aout == -1)
err = CheckMopFile(fd);
if (aout == -1 && err == 0) {
- if (GetMopFileInfo(fd, 0, 0) < 0) {
+ if (GetMopFileInfo(fd, 0, 0, INFO_PRINT) < 0) {
printf("Some failure in GetMopFileInfo\n");
}
};