aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-22 07:10:22 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2003-05-22 07:10:22 +0000
commit4dd9e87335943cf95898caa5778b051878d9e073 (patch)
treec43ee98370e719652d49493087220a4e9b4deb6e /networking
parent393ba5b41653f73d997d6eab6e4c2c6ea484a5b8 (diff)
downloadbusybox-w32-4dd9e87335943cf95898caa5778b051878d9e073.tar.gz
busybox-w32-4dd9e87335943cf95898caa5778b051878d9e073.tar.bz2
busybox-w32-4dd9e87335943cf95898caa5778b051878d9e073.zip
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. git-svn-id: svn://busybox.net/trunk/busybox@6847 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 @@
1/* vi: set sw=4 ts=4: */ 1/* vi: set sw=4 ts=4: */
2/* 2/*
3 * $Id: ping6.c,v 1.4 2003/03/19 09:12:38 mjn3 Exp $ 3 * $Id: ping6.c,v 1.5 2003/05/22 07:10:22 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>
@@ -77,6 +77,8 @@ static void ping(const char *host);
77 77
78/* simple version */ 78/* simple version */
79#ifndef CONFIG_FEATURE_FANCY_PING6 79#ifndef CONFIG_FEATURE_FANCY_PING6
80static struct hostent *h;
81
80void noresp(int ign) 82void noresp(int ign)
81{ 83{
82 printf("No response from %s\n", h->h_name); 84 printf("No response from %s\n", h->h_name);
@@ -85,7 +87,6 @@ void noresp(int ign)
85 87
86static void ping(const char *host) 88static void ping(const char *host)
87{ 89{
88 struct hostent *h;
89 struct sockaddr_in6 pingaddr; 90 struct sockaddr_in6 pingaddr;
90 struct icmp6_hdr *pkt; 91 struct icmp6_hdr *pkt;
91 int pingsock, c; 92 int pingsock, c;