aboutsummaryrefslogtreecommitdiff
path: root/util-linux/rdate.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-11-03 21:20:18 +0000
committerEric Andersen <andersen@codepoet.org>2003-11-03 21:20:18 +0000
commit04d055f4e11469f74bdde38837deefab27edb2e9 (patch)
tree2fb308c0bb612180b7bf8280d1ee5e5a76ac184c /util-linux/rdate.c
parentf6067beaa9408730c4232620330453e756d6d4f9 (diff)
downloadbusybox-04d055f4e11469f74bdde38837deefab27edb2e9.tar.gz
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.
Diffstat (limited to 'util-linux/rdate.c')
-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)
static time_t askremotedate(const char *host)
{
unsigned long int nett, localt;
- struct sockaddr_in addr s_in;
+ struct sockaddr_in s_in;
int fd;
bb_lookup_host(&s_in, host, "time");
@@ -56,7 +56,7 @@ static time_t askremotedate(const char *host)
alarm(10);
signal(SIGALRM, socket_timeout);
- fd = xconnect(s_in);
+ fd = xconnect(&s_in);
if (safe_read(fd, (void *)&nett, 4) != 4) /* read time from server */
bb_error_msg_and_die("%s did not send the complete time", host);