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
This commit is contained in:
Eitan Adler 2012-01-20 01:38:52 +00:00
parent 3f028229d9
commit e0ef7724c3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=230357
1 changed files with 1 additions and 2 deletions

View File

@ -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)