Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/mopd interactive errors.



details:   https://anonhg.NetBSD.org/src/rev/eda98701e78b
branches:  trunk
changeset: 546068:eda98701e78b
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 20 00:19:56 2003 +0000

description:
interactive errors.

diffstat:

 usr.sbin/mopd/mopchk/mopchk.c     |  8 ++++----
 usr.sbin/mopd/moptrace/moptrace.c |  5 +++--
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (62 lines):

diff -r 7cc95baf0079 -r eda98701e78b usr.sbin/mopd/mopchk/mopchk.c
--- a/usr.sbin/mopd/mopchk/mopchk.c     Sun Apr 20 00:19:05 2003 +0000
+++ b/usr.sbin/mopd/mopchk/mopchk.c     Sun Apr 20 00:19:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mopchk.c,v 1.9 2002/02/18 22:00:37 thorpej Exp $       */
+/*     $NetBSD: mopchk.c,v 1.10 2003/04/20 00:19:56 christos Exp $     */
 
 /*
  * Copyright (c) 1995-96 Mats O Jansson.  All rights reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: mopchk.c,v 1.9 2002/02/18 22:00:37 thorpej Exp $");
+__RCSID("$NetBSD: mopchk.c,v 1.10 2003/04/20 00:19:56 christos Exp $");
 #endif
 
 /*
@@ -46,6 +46,7 @@
 #include "file.h"
 #include "mopdef.h"
 #include "pf.h"
+#include "log.h"
 
 /*
  * The list of all interfaces that are being listened to.  rarp_loop()
@@ -74,8 +75,7 @@
        struct if_info *ii;
        int     err;
 
-       /* All error reporting is done through syslogs. */
-       openlog("mopchk", LOG_PID, LOG_DAEMON);
+       mopInteractive = 1;
 
        opterr = 0;
        while ((op = getopt(argc, argv, "av")) != -1) {
diff -r 7cc95baf0079 -r eda98701e78b usr.sbin/mopd/moptrace/moptrace.c
--- a/usr.sbin/mopd/moptrace/moptrace.c Sun Apr 20 00:19:05 2003 +0000
+++ b/usr.sbin/mopd/moptrace/moptrace.c Sun Apr 20 00:19:56 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: moptrace.c,v 1.8 2003/04/20 00:19:05 christos Exp $    */
+/*     $NetBSD: moptrace.c,v 1.9 2003/04/20 00:20:29 christos Exp $    */
 
 /*
  * Copyright (c) 1993-95 Mats O Jansson.  All rights reserved.
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: moptrace.c,v 1.8 2003/04/20 00:19:05 christos Exp $");
+__RCSID("$NetBSD: moptrace.c,v 1.9 2003/04/20 00:20:29 christos Exp $");
 #endif
 
 /*
@@ -50,6 +50,7 @@
 #include "pf.h"
 #include "print.h"
 #include "rc.h"
+#include "log.h"
 
 /*
  * The list of all interfaces that are being listened to. 



Home | Main Index | Thread Index | Old Index