Author: dim
Date: Thu Dec 15 20:10:12 2011
New Revision: 228537
URL: http://svn.freebsd.org/changeset/base/228537

Log:
  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

Modified:
  head/lib/libc/resolv/res_send.c

Modified: head/lib/libc/resolv/res_send.c
==============================================================================
--- head/lib/libc/resolv/res_send.c     Thu Dec 15 19:42:25 2011        
(r228536)
+++ head/lib/libc/resolv/res_send.c     Thu Dec 15 20:10:12 2011        
(r228537)
@@ -1102,8 +1102,6 @@ Aerror(const res_state statp, FILE *file
        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)) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to