Source-Changes-HG archive

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

[src/trunk]: src/sbin/reboot use openlog correctly...



details:   https://anonhg.NetBSD.org/src/rev/8b8bf918675c
branches:  trunk
changeset: 501992:8b8bf918675c
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jan 10 03:41:35 2001 +0000

description:
use openlog correctly...

diffstat:

 sbin/reboot/reboot.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r bf2db80f66d8 -r 8b8bf918675c sbin/reboot/reboot.c
--- a/sbin/reboot/reboot.c      Wed Jan 10 03:33:16 2001 +0000
+++ b/sbin/reboot/reboot.c      Wed Jan 10 03:41:35 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reboot.c,v 1.26 2000/04/25 14:03:26 hubertf Exp $      */
+/*     $NetBSD: reboot.c,v 1.27 2001/01/10 03:41:35 lukem Exp $        */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -44,7 +44,7 @@
 #if 0
 static char sccsid[] = "@(#)reboot.c   8.1 (Berkeley) 6/5/93";
 #else
-__RCSID("$NetBSD: reboot.c,v 1.26 2000/04/25 14:03:26 hubertf Exp $");
+__RCSID("$NetBSD: reboot.c,v 1.27 2001/01/10 03:41:35 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -145,13 +145,13 @@
                        user = (pw = getpwuid(getuid())) ?
                            pw->pw_name : "???";
                if (dohalt) {
-                       openlog("halt", 0, LOG_AUTH | LOG_CONS);
+                       openlog("halt", LOG_CONS, LOG_AUTH);
                        syslog(LOG_CRIT, "halted by %s", user);
                } else if (dopoweroff) {
-                       openlog("poweroff", 0, LOG_AUTH | LOG_CONS);
+                       openlog("poweroff", LOG_CONS, LOG_AUTH);
                        syslog(LOG_CRIT, "powered off by %s", user);
                } else {
-                       openlog("reboot", 0, LOG_AUTH | LOG_CONS);
+                       openlog("reboot", LOG_CONS, LOG_AUTH);
                        if (bootstr)
                                syslog(LOG_CRIT, "rebooted by %s: %s", user,
                                    bootstr);



Home | Main Index | Thread Index | Old Index