[BusyBox-cvs] busybox/util-linux rdate.c,1.28,1.29

Erik Andersen andersen at busybox.net
Mon Nov 3 21:20:17 UTC 2003


Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv19834/util-linux

Modified Files:
	rdate.c 
Log Message:
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.


Index: rdate.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/rdate.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- rdate.c	31 Oct 2003 09:31:42 -0000	1.28
+++ rdate.c	3 Nov 2003 21:20:14 -0000	1.29
@@ -47,7 +47,7 @@
 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 @@
 	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);




More information about the busybox-cvs mailing list