halt: reinstate -w even if !FEATURE_WTMP; beautify code in halt.c
[oweals/busybox.git] / loginutils / getty.c
index 358a45c7cde9e58cf7ae499416bdcf4060f5cad9..8b0e729fbb3a65252c49c36b64a28e8a8a273a0c 100644 (file)
@@ -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