aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-03 21:20:18 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-11-03 21:20:18 +0000
commit3b2c5e38dc4b7ec6ea1588841d6654606a5a502d (patch)
tree2fb308c0bb612180b7bf8280d1ee5e5a76ac184c /util-linux/rdate.c
parent4ccd83db3f12b4b4137a5d5e9cae9f9ddcd8a1ca (diff)
downloadbusybox-w32-3b2c5e38dc4b7ec6ea1588841d6654606a5a502d.tar.gz
busybox-w32-3b2c5e38dc4b7ec6ea1588841d6654606a5a502d.tar.bz2
busybox-w32-3b2c5e38dc4b7ec6ea1588841d6654606a5a502d.zip
Fix rdate and ftpget/ftpput so they compile with the new xconnect.
I have checked rdate. Someone should also check ftpget/ftpput to be sure they still work. git-svn-id: svn://busybox.net/trunk/busybox@7765 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-rw-r--r--util-linux/rdate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/rdate.c b/util-linux/rdate.c
index a822f42ff..c9a7ffeab 100644
--- a/util-linux/rdate.c
+++ b/util-linux/rdate.c
@@ -47,7 +47,7 @@ static void socket_timeout(int sig)
47static time_t askremotedate(const char *host) 47static time_t askremotedate(const char *host)
48{ 48{
49 unsigned long int nett, localt; 49 unsigned long int nett, localt;
50 struct sockaddr_in addr s_in; 50 struct sockaddr_in s_in;
51 int fd; 51 int fd;
52 52
53 bb_lookup_host(&s_in, host, "time"); 53 bb_lookup_host(&s_in, host, "time");
@@ -56,7 +56,7 @@ static time_t askremotedate(const char *host)
56 alarm(10); 56 alarm(10);
57 signal(SIGALRM, socket_timeout); 57 signal(SIGALRM, socket_timeout);
58 58
59 fd = xconnect(s_in); 59 fd = xconnect(&s_in);
60 60
61 if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */ 61 if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */
62 bb_error_msg_and_die("%s did not send the complete time", host); 62 bb_error_msg_and_die("%s did not send the complete time", host);