aboutsummaryrefslogtreecommitdiff
path: root/loginutils/getty.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-09-11 09:54:23 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2008-09-11 09:54:23 +0000
commit9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26 (patch)
tree8086e36b8ba88db3d2bedfc2a13c1f57b0aa1f31 /loginutils/getty.c
parent8d89bed8401bfbca9c5ef18f201439b3502e733b (diff)
downloadbusybox-9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26.tar.gz
busybox-9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26.tar.bz2
halt: reinstate -w even if !FEATURE_WTMP; beautify code in halt.c
Diffstat (limited to 'loginutils/getty.c')
-rw-r--r--loginutils/getty.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/loginutils/getty.c b/loginutils/getty.c
index 358a45c7c..8b0e729fb 100644
--- a/loginutils/getty.c
+++ b/loginutils/getty.c
@@ -19,7 +19,7 @@
#include <syslog.h>
#if ENABLE_FEATURE_UTMP
-#include <utmp.h>
+#include <utmp.h> /* updwtmp() */
#endif
/*
@@ -29,9 +29,6 @@
#ifdef LOGIN_PROCESS /* defined in System V utmp.h */
#include <sys/utsname.h>
#include <time.h>
-#if ENABLE_FEATURE_WTMP
-extern void updwtmp(const char *filename, const struct utmp *ut);
-#endif
#else /* if !sysV style, wtmp/utmp code is off */
#undef ENABLE_FEATURE_UTMP
#undef ENABLE_FEATURE_WTMP