Source-Changes-HG archive

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

[src/trunk]: src/sbin/wdogctl don't use LOG_CONS



details:   https://anonhg.NetBSD.org/src/rev/9110804ef9c8
branches:  trunk
changeset: 501997:9110804ef9c8
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 10 07:59:43 2001 +0000

description:
don't use LOG_CONS
fix typo

diffstat:

 sbin/wdogctl/wdogctl.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 4155fb90f9f8 -r 9110804ef9c8 sbin/wdogctl/wdogctl.c
--- a/sbin/wdogctl/wdogctl.c    Wed Jan 10 07:45:41 2001 +0000
+++ b/sbin/wdogctl/wdogctl.c    Wed Jan 10 07:59:43 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wdogctl.c,v 1.2 2000/11/06 07:48:28 minoura Exp $      */
+/*     $NetBSD: wdogctl.c,v 1.3 2001/01/10 07:59:43 lukem Exp $        */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -171,7 +171,7 @@
                err(1, "open %s", _PATH_WATCHDOG);
 
        /* ...so we can log failures to tickle the timer. */
-       openlog(__progname, LOG_CONS|LOG_PERROR|LOG_PID, LOG_DAEMON);
+       openlog(__progname, LOG_PERROR|LOG_PID, LOG_DAEMON);
 
        /*
         * We fork a child process which detaches from the controlling
@@ -218,7 +218,7 @@
                 * we exit, the kernel will disable the watchdog so
                 * that the system won't die.
                 */
-               err(1, "unable to deatch from terminal");
+               err(1, "unable to detach from terminal");
        }
 
        if (ioctl(fd, WDOGIOC_TICKLE) == -1)



Home | Main Index | Thread Index | Old Index