Remove debugging statement.
[oweals/busybox.git] / dutmp.c
diff --git a/dutmp.c b/dutmp.c
index 26253b44551a2bc356ea5fd0f54ab482673e872b..df7f64d30dfaaff27a573443263d7a57e5b618c5 100644 (file)
--- a/dutmp.c
+++ b/dutmp.c
@@ -20,9 +20,6 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include "busybox.h"
-#define BB_DECLARE_EXTERN
-#define bb_need_io_error
-#include "messages.c"
 
 extern int dutmp_main(int argc, char **argv)
 {
@@ -42,7 +39,7 @@ extern int dutmp_main(int argc, char **argv)
        }
 
 /* Kludge around the fact that the binary format for utmp has changed. */
-#if __GNU_LIBRARY__ < 5
+#if __GNU_LIBRARY__ < 5 || defined __UCLIBC__
        /* Linux libc5 */
        while (read(file, (void*)&ut, sizeof(struct utmp))) {
                printf("%d|%d|%s|%s|%s|%s|%s|%lx\n",
@@ -52,7 +49,7 @@ extern int dutmp_main(int argc, char **argv)
                                (long)ut.ut_addr);
        }
 #else
-       /* Glibc, uClibc, etc */
+       /* Glibc, uClibc, etc. */
        while (read(file, (void*)&ut, sizeof(struct utmp))) {
                printf("%d|%d|%s|%s|%s|%s|%d|%d|%ld|%ld|%ld|%x\n",
                ut.ut_type, ut.ut_pid, ut.ut_line,