reboot: fix arg order for logwtmpx(3)

Matches the correct order from init(1).

Thanks to Sascha Wildner <swildner@dragonflybsd.org>
This commit is contained in:
roy 2019-08-08 21:14:12 +00:00
parent 0c750f3eef
commit 85f97b7a69
1 changed files with 3 additions and 3 deletions

View File

@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1986, 1993\
#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 @@ main(int argc, char *argv[])
logwtmp("~", "shutdown", "");
#endif
#ifdef SUPPORT_UTMPX
logwtmpx("~", "shutdown", "", INIT_PROCESS, 0);
logwtmpx("~", "shutdown", "", 0, INIT_PROCESS);
#endif
/*