X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=util-linux%2Frdate.c;h=c9a7ffeabe2970ae7ce5ca664c6043fa0fd8b3b2;hb=50547c07451d07178eeb64e7d8637952b427bd4c;hp=a822f42ffcc9ab86e923e765a17572a40c650ac6;hpb=e6dc439b3a3fa2a64f9e938ac4e5810025c04242;p=oweals%2Fbusybox.git 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);