svn commit: r230357 - head/usr.sbin/rtsold

Eitan Adler eadler at FreeBSD.org
Fri Jan 20 01:38:53 UTC 2012


Author: eadler
Date: Fri Jan 20 01:38:52 2012
New Revision: 230357
URL: http://svn.freebsd.org/changeset/base/230357

Log:
  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

Modified:
  head/usr.sbin/rtsold/rtsold.c

Modified: head/usr.sbin/rtsold/rtsold.c
==============================================================================
--- head/usr.sbin/rtsold/rtsold.c	Fri Jan 20 01:38:44 2012	(r230356)
+++ head/usr.sbin/rtsold/rtsold.c	Fri Jan 20 01:38:52 2012	(r230357)
@@ -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)


More information about the svn-src-head mailing list