From 1fb926c0ca05fdeb96792504bc69b9a906e07115 Mon Sep 17 00:00:00 2001
From: andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>
Date: Thu, 21 Mar 2002 14:04:43 +0000
Subject: Doh!  I broke ping when removing the nested function. This patch from
 vodz fixes it again.

git-svn-id: svn://busybox.net/trunk/busybox@4472 69ca8d6d-28ef-0310-b511-8ec308f3f277
---
 networking/ping.c | 8 ++++----
 1 file 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 @@
 /* vi: set sw=4 ts=4: */
 /*
- * $Id: ping.c,v 1.49 2002/03/20 11:59:28 andersen Exp $
+ * $Id: ping.c,v 1.50 2002/03/21 14:04:43 andersen Exp $
  * Mini ping implementation for busybox
  *
  * Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -176,9 +176,9 @@ static int in_cksum(unsigned short *buf, int sz)
 /* simple version */
 #ifndef CONFIG_FEATURE_FANCY_PING
 static char *hostname = NULL;
-void noresp(int ign)
+static void noresp(int ign)
 {
-	printf("No response from %s\n", h->h_name);
+	printf("No response from %s\n", hostname);
 	exit(0);
 }
 
@@ -232,7 +232,7 @@ static void ping(const char *host)
 				break;
 		}
 	}
-	printf("%s is alive!\n", h->h_name);
+	printf("%s is alive!\n", hostname);
 	return;
 }
 
-- 
cgit v1.2.3-55-g6feb