aboutsummaryrefslogtreecommitdiff
path: root/sbin/init/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/init/init.c')
-rw-r--r--sbin/init/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index 58e673968899..e808f19aaddb 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -65,9 +65,9 @@ static const char rcsid[] =
#include <syslog.h>
#include <time.h>
#include <ttyent.h>
-#define _ULOG_POSIX_NAMES
#include <ulog.h>
#include <unistd.h>
+#include <utmpx.h>
#include <sys/reboot.h>
#include <err.h>
@@ -569,10 +569,13 @@ transition(state_t s)
* NB: should send a message to the session logger to avoid blocking.
*/
static void
-clear_session_logs(session_t *sp)
+clear_session_logs(session_t *sp __unused)
{
- ulog_logout(sp->se_device);
+ /*
+ * XXX: Use getutxline() and call pututxline() for each entry.
+ * Is this safe to do this here? Is it really required anyway?
+ */
}
/*