Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Sep 2015 20:12:54 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r287995 - head/usr.sbin/ndp
Message-ID:  <201509192012.t8JKCsWu077513@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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" : "",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201509192012.t8JKCsWu077513>