svn commit: r287995 - head/usr.sbin/ndp

Xin LI delphij at FreeBSD.org
Sat Sep 19 20:12:55 UTC 2015


Author: delphij
Date: Sat Sep 19 20:12:53 2015
New Revision: 287995
URL: https://svnweb.freebsd.org/changeset/base/287995

Log:
  'sin' is never used after assignment.  Looking at the context, it seems
  that it belongs the commented out section of code so make it part of that
  section.
  
  Reported by:	clang static analyzer
  MFC after:	2 weeks

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

Modified: head/usr.sbin/ndp/ndp.c
==============================================================================
--- head/usr.sbin/ndp/ndp.c	Sat Sep 19 19:30:55 2015	(r287994)
+++ head/usr.sbin/ndp/ndp.c	Sat Sep 19 20:12:53 2015	(r287995)
@@ -728,9 +728,9 @@ again:;
 			    isrouter ? "R" : "",
 			    (rtm->rtm_flags & RTF_ANNOUNCE) ? "p" : "");
 		} else {
+#if 0	/* W and P are mystery even for us */
 			sin = (struct sockaddr_in6 *)
 			    (sdl->sdl_len + (char *)sdl);
-#if 0	/* W and P are mystery even for us */
 			snprintf(flgbuf, sizeof(flgbuf), "%s%s%s%s",
 			    isrouter ? "R" : "",
 			    !IN6_IS_ADDR_UNSPECIFIED(&sin->sin6_addr) ? "P" : "",


More information about the svn-src-head mailing list