Make suffix_mult structures const. Thanks to Vladimir N. Oleynik.
[oweals/busybox.git] / rdate.c
diff --git a/rdate.c b/rdate.c
index 954982ae958a2b68ec93a34ef6a2a7740c75b8c6..d350be87724b0e46d39a368ad018669f7fec4056 100644 (file)
--- a/rdate.c
+++ b/rdate.c
@@ -31,6 +31,8 @@
 #include <netdb.h>
 #include <stdio.h>
 #include <getopt.h>
+#include <stdlib.h>
+#include <unistd.h>
 
 
 static const int RFC_868_BIAS = 2208988800UL;
@@ -70,7 +72,7 @@ time_t askremotedate(char *host)
        }
        if (read(fd, (void *)&nett, 4) != 4) {  /* read time from server */
                close(fd);
-               error_msg("%s did not send the complete time\n", host);
+               error_msg("%s did not send the complete time", host);
        }
        close(fd);