summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-09-19 20:12:53 +0000
committerdelphij <delphij@FreeBSD.org>2015-09-19 20:12:53 +0000
commit50393939f12c136c7be5d47493637924d53a5e1a (patch)
tree5ecd976d5fd5171788d5aca497a814be433de000 /usr.sbin
parentce8faf1ce9ad3a57f1ec7bd5fae40f1c4a0abbcd (diff)
downloadFreeBSD-src-50393939f12c136c7be5d47493637924d53a5e1a.zip
FreeBSD-src-50393939f12c136c7be5d47493637924d53a5e1a.tar.gz
'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
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ndp/ndp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index cf681fe..4837b06 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -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" : "",
OpenPOWER on IntegriCloud