aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
authormjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
committermjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-03-19 09:13:01 +0000
commite901c15d890dbbdce4c086963cb1513653fc46b5 (patch)
treea318d0f03aa076c74b576ea45dc543a5669e8e91 /util-linux/rdate.c
parent40758c00616c3b2c85d83eb4afdeb04b1f65c9f1 (diff)
downloadbusybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.gz
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.tar.bz2
busybox-w32-e901c15d890dbbdce4c086963cb1513653fc46b5.zip
Major coreutils update.
git-svn-id: svn://busybox.net/trunk/busybox@6751 69ca8d6d-28ef-0310-b511-8ec308f3f277
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)