Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 31 Dec 2011 12:45:43 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r229077 - stable/9/lib/libc/resolv
Message-ID:  <201112311245.pBVCjh3W063247@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Sat Dec 31 12:45:43 2011
New Revision: 229077
URL: http://svn.freebsd.org/changeset/base/229077

Log:
  MFC r228537:
  
  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.

Modified:
  stable/9/lib/libc/resolv/res_send.c
Directory Properties:
  stable/9/lib/libc/   (props changed)

Modified: stable/9/lib/libc/resolv/res_send.c
==============================================================================
--- stable/9/lib/libc/resolv/res_send.c	Sat Dec 31 12:37:07 2011	(r229076)
+++ stable/9/lib/libc/resolv/res_send.c	Sat Dec 31 12:45:43 2011	(r229077)
@@ -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)) {



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