summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-15 20:10:12 +0000
committerdim <dim@FreeBSD.org>2011-12-15 20:10:12 +0000
commiteff6973ad8659f6856d467e550bbf642aac2eaac (patch)
treebb4208ef0481c06f5f04d1891e021c9ec97bad2d /lib
parent366d0e5e6bc8a4c9a663a8cfb196b8010dc2f5f6 (diff)
downloadFreeBSD-src-eff6973ad8659f6856d467e550bbf642aac2eaac.zip
FreeBSD-src-eff6973ad8659f6856d467e550bbf642aac2eaac.tar.gz
Remove meaningless self-assignment in res_send.c, otherwise clang will
warn about it. I guess this was originally done to silence a bogus warning by an older version of gcc, but I could not reproduce it with any version of gcc that I have access to. MFC after: 1 week
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/resolv/res_send.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/libc/resolv/res_send.c b/lib/libc/resolv/res_send.c
index d4f0c33..716ae32 100644
--- a/lib/libc/resolv/res_send.c
+++ b/lib/libc/resolv/res_send.c
@@ -1102,8 +1102,6 @@ Aerror(const res_state statp, FILE *file, const char *string, int error,
char hbuf[NI_MAXHOST];
char sbuf[NI_MAXSERV];
- alen = alen;
-
if ((statp->options & RES_DEBUG) != 0U) {
if (getnameinfo(address, alen, hbuf, sizeof(hbuf),
sbuf, sizeof(sbuf), niflags)) {
OpenPOWER on IntegriCloud