Source-Changes-HG archive

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

[src/trunk]: src/sbin/reboot reboot: fix arg order for logwtmpx(3)



details:   https://anonhg.NetBSD.org/src/rev/43c9bc7b2cd3
branches:  trunk
changeset: 964605:43c9bc7b2cd3
user:      roy <roy%NetBSD.org@localhost>
date:      Thu Aug 08 21:14:12 2019 +0000

description:
reboot: fix arg order for logwtmpx(3)

Matches the correct order from init(1).

Thanks to Sascha Wildner <swildner%dragonflybsd.org@localhost>

diffstat:

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

diffs (27 lines):

diff -r 8147079a7e7a -r 43c9bc7b2cd3 sbin/reboot/reboot.c
--- a/sbin/reboot/reboot.c      Thu Aug 08 18:08:41 2019 +0000
+++ b/sbin/reboot/reboot.c      Thu Aug 08 21:14:12 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: reboot.c,v 1.40 2012/11/04 22:28:16 christos Exp $     */
+/*     $NetBSD: reboot.c,v 1.41 2019/08/08 21:14:12 roy Exp $  */
 
 /*
  * Copyright (c) 1980, 1986, 1993
@@ -40,7 +40,7 @@
 #if 0
 static char sccsid[] = "@(#)reboot.c   8.1 (Berkeley) 6/5/93";
 #else
-__RCSID("$NetBSD: reboot.c,v 1.40 2012/11/04 22:28:16 christos Exp $");
+__RCSID("$NetBSD: reboot.c,v 1.41 2019/08/08 21:14:12 roy Exp $");
 #endif
 #endif /* not lint */
 
@@ -169,7 +169,7 @@
        logwtmp("~", "shutdown", "");
 #endif
 #ifdef SUPPORT_UTMPX
-       logwtmpx("~", "shutdown", "", INIT_PROCESS, 0);
+       logwtmpx("~", "shutdown", "", 0, INIT_PROCESS);
 #endif
 
        /*



Home | Main Index | Thread Index | Old Index