aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-05-22 07:10:22 +0000
committerEric Andersen <andersen@codepoet.org>2003-05-22 07:10:22 +0000
commit787ff55a69ad28905f8e8b53fb87e7fafba9b051 (patch)
treec43ee98370e719652d49493087220a4e9b4deb6e /networking
parent4fe3ff8cffce83b3132223daf80e3e77ca89c259 (diff)
downloadbusybox-787ff55a69ad28905f8e8b53fb87e7fafba9b051.tar.gz
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.
Diffstat (limited to 'networking')
-rw-r--r--networking/ping6.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ping6.c b/networking/ping6.c
index c40624219..d9d0dd343 100644
--- a/networking/ping6.c
+++ b/networking/ping6.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping6.c,v 1.4 2003/03/19 09:12:38 mjn3 Exp $
+ * $Id: ping6.c,v 1.5 2003/05/22 07:10:22 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -77,6 +77,8 @@ static void ping(const char *host);
/* 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 @@ void noresp(int ign)
static void ping(const char *host)
{
- struct hostent *h;
struct sockaddr_in6 pingaddr;
struct icmp6_hdr *pkt;
int pingsock, c;