diff --git sbin/reboot/reboot.c sbin/reboot/reboot.c index 0e215c2b93a..5e0c50df150 100644 --- sbin/reboot/reboot.c +++ sbin/reboot/reboot.c @@ -146,7 +146,7 @@ main(int argc, char *argv[]) user = (pw = getpwuid(getuid())) ? pw->pw_name : "???"; if (dohalt) { - openlog("halt", 0, LOG_AUTH | LOG_CONS); + openlog("halt", LOG_CONS, LOG_AUTH); if (pflag) { syslog(LOG_CRIT, "halted (with powerdown) by %s", user); @@ -154,7 +154,7 @@ main(int argc, char *argv[]) syslog(LOG_CRIT, "halted by %s", user); } } else { - openlog("reboot", 0, LOG_AUTH | LOG_CONS); + openlog("reboot", LOG_CONS, LOG_AUTH); syslog(LOG_CRIT, "rebooted by %s", user); } }