aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 22:45:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-01-22 22:45:27 +0000
commit9adc6ced4fcab4d8a068874c55d5f563ce9e62f9 (patch)
tree586266ceaeff8f26c8f08b24b2ad0df1630097e6 /networking/ping.c
parent448f0241e06e7df2003b7f8afcf01e7406762b4e (diff)
downloadbusybox-w32-9adc6ced4fcab4d8a068874c55d5f563ce9e62f9.tar.gz
busybox-w32-9adc6ced4fcab4d8a068874c55d5f563ce9e62f9.tar.bz2
busybox-w32-9adc6ced4fcab4d8a068874c55d5f563ce9e62f9.zip
ping6: stop using xgethostbyname2, remove it from libbb.
Diffstat (limited to 'networking/ping.c')
-rw-r--r--networking/ping.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c
index 91708d282..fc2de456a 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -97,7 +97,7 @@ static void ping(const char *host)
97 } 97 }
98 98
99 signal(SIGALRM, noresp); 99 signal(SIGALRM, noresp);
100 alarm(5); /* give the host 5000ms to respond */ 100 alarm(5); /* give the host 5000ms to respond */
101 /* listen for replies */ 101 /* listen for replies */
102 while (1) { 102 while (1) {
103 struct sockaddr_in from; 103 struct sockaddr_in from;
@@ -118,7 +118,8 @@ static void ping(const char *host)
118 break; 118 break;
119 } 119 }
120 } 120 }
121 if (ENABLE_FEATURE_CLEAN_UP) close(pingsock); 121 if (ENABLE_FEATURE_CLEAN_UP)
122 close(pingsock);
122 printf("%s is alive!\n", hostname); 123 printf("%s is alive!\n", hostname);
123} 124}
124 125