summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold/rtsold.c
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-20 01:38:52 +0000
committereadler <eadler@FreeBSD.org>2012-01-20 01:38:52 +0000
commit84d41facfbc3e68a7d4f1cf1dde81fc605ef7ef9 (patch)
treea36daffb44a33227a57b513631e2112e6a28ed40 /usr.sbin/rtsold/rtsold.c
parent96a3210b4f3fe9c22731c077cc4956eec4694fd2 (diff)
downloadFreeBSD-src-84d41facfbc3e68a7d4f1cf1dde81fc605ef7ef9.zip
FreeBSD-src-84d41facfbc3e68a7d4f1cf1dde81fc605ef7ef9.tar.gz
Fix warning when compiling with gcc46:
error: variable 'target' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
Diffstat (limited to 'usr.sbin/rtsold/rtsold.c')
-rw-r--r--usr.sbin/rtsold/rtsold.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c
index 7df0ec6..d3d1289 100644
--- a/usr.sbin/rtsold/rtsold.c
+++ b/usr.sbin/rtsold/rtsold.c
@@ -881,7 +881,7 @@ autoifprobe(void)
static int n = 0;
char **a;
int s = 0, i, found;
- struct ifaddrs *ifap, *ifa, *target;
+ struct ifaddrs *ifap, *ifa;
struct in6_ndireq nd;
/* initialize */
@@ -901,7 +901,6 @@ autoifprobe(void)
exit(1);
}
- target = NULL;
/* find an ethernet */
for (ifa = ifap; ifa; ifa = ifa->ifa_next) {
if ((ifa->ifa_flags & IFF_UP) == 0)
OpenPOWER on IntegriCloud