aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/rdate.c')
-rw-r--r--util-linux/rdate.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index df7d7bbc4..3c3b152a2 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -49,7 +49,7 @@ static time_t askremotedate(const char *host)
49 fd = xconnect(host, port); 49 fd = xconnect(host, port);
50 50
51 if (read(fd, (void *)&nett, 4) != 4) /* read time from server */ 51 if (read(fd, (void *)&nett, 4) != 4) /* read time from server */
52 error_msg_and_die("%s did not send the complete time", host); 52 bb_error_msg_and_die("%s did not send the complete time", host);
53 53
54 close(fd); 54 close(fd);
55 55
@@ -83,18 +83,18 @@ int rdate_main(int argc, char **argv)
83 setdate = 0; 83 setdate = 0;
84 break; 84 break;
85 default: 85 default:
86 show_usage(); 86 bb_show_usage();
87 } 87 }
88 } 88 }
89 89
90 if (optind == argc) 90 if (optind == argc)
91 show_usage(); 91 bb_show_usage();
92 92
93 remote_time = askremotedate(argv[optind]); 93 remote_time = askremotedate(argv[optind]);
94 94
95 if (setdate) { 95 if (setdate) {
96 if (stime(&remote_time) < 0) 96 if (stime(&remote_time) < 0)
97 perror_msg_and_die("Could not set time of day"); 97 bb_perror_msg_and_die("Could not set time of day");
98 } 98 }
99 99
100 if (printdate) 100 if (printdate)