summaryrefslogtreecommitdiff
path: root/sbin/init
diff options
context:
space:
mode:
authorhe <he@NetBSD.org>2006-09-23 18:57:26 +0000
committerhe <he@NetBSD.org>2006-09-23 18:57:26 +0000
commitfa8dee86287c5a88f314e60cd3077d1fe19f2612 (patch)
treec1d2750c848b4f618208fc2e9480cfe248684a22 /sbin/init
parent6308f92920b2a2b758598dcaa9832e97213f0022 (diff)
Um, correct previous, so that current_state def/use is consistent.
Diffstat (limited to 'sbin/init')
-rw-r--r--sbin/init/init.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/init/init.c b/sbin/init/init.c
index e25c337f032..2005a3252f6 100644
--- a/sbin/init/init.c
+++ b/sbin/init/init.c
@@ -1,4 +1,4 @@
-/* $NetBSD: init.c,v 1.78 2006/09/23 14:04:26 he Exp $ */
+/* $NetBSD: init.c,v 1.79 2006/09/23 18:57:26 he Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -42,7 +42,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n"
#if 0
static char sccsid[] = "@(#)init.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: init.c,v 1.78 2006/09/23 14:04:26 he Exp $");
+__RCSID("$NetBSD: init.c,v 1.79 2006/09/23 18:57:26 he Exp $");
#endif
#endif /* not lint */
@@ -559,9 +559,9 @@ transition(state_t s)
#ifndef LETS_GET_SMALL
utmpx_set_runlevel(get_runlevel(current_state),
get_runlevel(s));
-#endif
current_state = s;
#endif
+#endif
s = (state_t)(*s)();
}
}