aboutsummaryrefslogtreecommitdiff
path: root/loginutils
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-09-11 09:54:23 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2008-09-11 09:54:23 +0000
commit9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26 (patch)
tree8086e36b8ba88db3d2bedfc2a13c1f57b0aa1f31 /loginutils
parent8d89bed8401bfbca9c5ef18f201439b3502e733b (diff)
downloadbusybox-w32-9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26.tar.gz
busybox-w32-9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26.tar.bz2
busybox-w32-9725daa03a7806b1c9c5a3c511dfe2ff9f97dd26.zip
halt: reinstate -w even if !FEATURE_WTMP; beautify code in halt.c
Diffstat (limited to 'loginutils')
-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 @@
19#include <syslog.h> 19#include <syslog.h>
20 20
21#if ENABLE_FEATURE_UTMP 21#if ENABLE_FEATURE_UTMP
22#include <utmp.h> 22#include <utmp.h> /* updwtmp() */
23#endif 23#endif
24 24
25/* 25/*
@@ -29,9 +29,6 @@
29#ifdef LOGIN_PROCESS /* defined in System V utmp.h */ 29#ifdef LOGIN_PROCESS /* defined in System V utmp.h */
30#include <sys/utsname.h> 30#include <sys/utsname.h>
31#include <time.h> 31#include <time.h>
32#if ENABLE_FEATURE_WTMP
33extern void updwtmp(const char *filename, const struct utmp *ut);
34#endif
35#else /* if !sysV style, wtmp/utmp code is off */ 32#else /* if !sysV style, wtmp/utmp code is off */
36#undef ENABLE_FEATURE_UTMP 33#undef ENABLE_FEATURE_UTMP
37#undef ENABLE_FEATURE_WTMP 34#undef ENABLE_FEATURE_WTMP