diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-03-21 14:04:43 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-03-21 14:04:43 +0000 |
commit | b88868276ce98f0842635835c69936632da83858 (patch) | |
tree | 4db90848d12d3e51361a15f55181b62585ecc996 /networking/ping.c | |
parent | 83788da25055c4a2775c3d78a29255ee671141bb (diff) | |
download | busybox-w32-b88868276ce98f0842635835c69936632da83858.tar.gz busybox-w32-b88868276ce98f0842635835c69936632da83858.tar.bz2 busybox-w32-b88868276ce98f0842635835c69936632da83858.zip |
Doh! I broke ping when removing the nested function.
This patch from vodz fixes it again.
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/networking/ping.c b/networking/ping.c index 82be07956..e3ba2ed27 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | 1 | /* vi: set sw=4 ts=4: */ |
2 | /* | 2 | /* |
3 | * $Id: ping.c,v 1.49 2002/03/20 11:59:28 andersen Exp $ | 3 | * $Id: ping.c,v 1.50 2002/03/21 14:04:43 andersen Exp $ |
4 | * Mini ping implementation for busybox | 4 | * Mini ping implementation for busybox |
5 | * | 5 | * |
6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> | 6 | * Copyright (C) 1999 by Randolph Chung <tausq@debian.org> |
@@ -176,9 +176,9 @@ static int in_cksum(unsigned short *buf, int sz) | |||
176 | /* simple version */ | 176 | /* simple version */ |
177 | #ifndef CONFIG_FEATURE_FANCY_PING | 177 | #ifndef CONFIG_FEATURE_FANCY_PING |
178 | static char *hostname = NULL; | 178 | static char *hostname = NULL; |
179 | void noresp(int ign) | 179 | static void noresp(int ign) |
180 | { | 180 | { |
181 | printf("No response from %s\n", h->h_name); | 181 | printf("No response from %s\n", hostname); |
182 | exit(0); | 182 | exit(0); |
183 | } | 183 | } |
184 | 184 | ||
@@ -232,7 +232,7 @@ static void ping(const char *host) | |||
232 | break; | 232 | break; |
233 | } | 233 | } |
234 | } | 234 | } |
235 | printf("%s is alive!\n", h->h_name); | 235 | printf("%s is alive!\n", hostname); |
236 | return; | 236 | return; |
237 | } | 237 | } |
238 | 238 | ||