aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2015-09-19 20:12:53 +0000
committerXin LI <delphij@FreeBSD.org>2015-09-19 20:12:53 +0000
commit99e46388214d0586dda30ef53a0e5b14b7f8f888 (patch)
tree5ecd976d5fd5171788d5aca497a814be433de000 /usr.sbin/ndp
parent921af50782afe61c1444cf7a56663379db2704c7 (diff)
downloadsrc-99e46388214d0586dda30ef53a0e5b14b7f8f888.tar.gz
src-99e46388214d0586dda30ef53a0e5b14b7f8f888.zip
'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
Notes
Notes: svn path=/head/; revision=287995
Diffstat (limited to 'usr.sbin/ndp')
-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 cf681fe35888..4837b06ac324 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" : "",