diff options
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r-- | util-linux/rdate.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c index 70f829e7f..41aade5ea 100644 --- a/util-linux/rdate.c +++ b/util-linux/rdate.c | |||
@@ -33,7 +33,7 @@ enum { RFC_868_BIAS = 2208988800UL }; | |||
33 | 33 | ||
34 | static void socket_timeout(int sig UNUSED_PARAM) | 34 | static void socket_timeout(int sig UNUSED_PARAM) |
35 | { | 35 | { |
36 | bb_error_msg_and_die("timeout connecting to time server"); | 36 | bb_simple_error_msg_and_die("timeout connecting to time server"); |
37 | } | 37 | } |
38 | 38 | ||
39 | static time_t askremotedate(const char *host) | 39 | static time_t askremotedate(const char *host) |
@@ -94,10 +94,10 @@ int rdate_main(int argc UNUSED_PARAM, char **argv) | |||
94 | 94 | ||
95 | if (!(flags & 2)) { /* no -p (-s may be present) */ | 95 | if (!(flags & 2)) { /* no -p (-s may be present) */ |
96 | if (time(NULL) == remote_time) | 96 | if (time(NULL) == remote_time) |
97 | bb_error_msg("current time matches remote time"); | 97 | bb_simple_error_msg("current time matches remote time"); |
98 | else | 98 | else |
99 | if (stime(&remote_time) < 0) | 99 | if (stime(&remote_time) < 0) |
100 | bb_perror_msg_and_die("can't set time of day"); | 100 | bb_simple_perror_msg_and_die("can't set time of day"); |
101 | } | 101 | } |
102 | 102 | ||
103 | if (flags != 1) /* not lone -s */ | 103 | if (flags != 1) /* not lone -s */ |