Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20160418052953.GL21636@brightrain.aerifal.cx>
Date: Mon, 18 Apr 2016 01:29:53 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Re: [PATCH] res_msend: Remove unnecessary line

On Sun, Apr 17, 2016 at 02:53:08PM +0000, Petr Vaněk wrote:
> The variable nss is set to zero in following line, therefore this line
> is not needed.

Indeed, this looks like cruft left over from when I was writing that
code. Thanks, applied.

Rich

> ---
>  src/network/res_msend.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/network/res_msend.c b/src/network/res_msend.c
> index a47d18d..de7f615 100644
> --- a/src/network/res_msend.c
> +++ b/src/network/res_msend.c
> @@ -52,7 +52,6 @@ int __res_msend_rc(int nqueries, const unsigned char *const *queries,
>  	timeout = 1000*conf->timeout;
>  	attempts = conf->attempts;
>  
> -	nns = conf->nns;
>  	for (nns=0; nns<conf->nns; nns++) {
>  		const struct address *iplit = &conf->ns[nns];
>  		if (iplit->family == AF_INET) {
> -- 
> 2.7.3

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.