[BusyBox-cvs] busybox/networking ping6.c,1.4,1.5

Erik Andersen andersen at busybox.net
Thu May 22 07:10:27 UTC 2003


Update of /var/cvs/busybox/networking
In directory winder:/tmp/cvs-serv4318/networking

Modified Files:
	ping6.c 
Log Message:
Patch from Russell Coker:

The attached patch fixes a compilation error.  If you compile ping6 without
the CONFIG_FEATURE_FANCY_PING6 option then the compile will fail without this
patch.



Index: ping6.c
===================================================================
RCS file: /var/cvs/busybox/networking/ping6.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- ping6.c	19 Mar 2003 09:12:38 -0000	1.4
+++ ping6.c	22 May 2003 07:10:22 -0000	1.5
@@ -77,6 +77,8 @@
 
 /* simple version */
 #ifndef CONFIG_FEATURE_FANCY_PING6
+static struct hostent *h;
+
 void noresp(int ign)
 {
 	printf("No response from %s\n", h->h_name);
@@ -85,7 +87,6 @@
 
 static void ping(const char *host)
 {
-	struct hostent *h;
 	struct sockaddr_in6 pingaddr;
 	struct icmp6_hdr *pkt;
 	int pingsock, c;



More information about the busybox-cvs mailing list