From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10514 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] remove dead case in gethostbyname2_r Date: Sat, 24 Sep 2016 01:11:03 -0400 Message-ID: <20160924051103.GC19318@brightrain.aerifal.cx> References: <20160924043806.31822-1-dsabogalcc@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1474693900 3340 195.159.176.226 (24 Sep 2016 05:11:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2016 05:11:40 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10527-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 24 07:11:37 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bnfF5-00068p-Pq for gllmg-musl@m.gmane.org; Sat, 24 Sep 2016 07:11:15 +0200 Original-Received: (qmail 11865 invoked by uid 550); 24 Sep 2016 05:11:16 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11844 invoked from network); 24 Sep 2016 05:11:15 -0000 Content-Disposition: inline In-Reply-To: <20160924043806.31822-1-dsabogalcc@gmail.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10514 Archived-At: On Sat, Sep 24, 2016 at 12:38:06AM -0400, Daniel Sabogal wrote: > this case statement was accidently left behind when this function > was refactored in commit e8f39ca4898237cf71657500f0b11534c47a0521. > --- > if (cnt<0) switch (cnt) { > ... > case 0: > break; > } > > src/network/gethostbyname2_r.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/src/network/gethostbyname2_r.c b/src/network/gethostbyname2_r.c > index 5c1cae9..fc89487 100644 > --- a/src/network/gethostbyname2_r.c > +++ b/src/network/gethostbyname2_r.c > @@ -34,8 +34,6 @@ int gethostbyname2_r(const char *name, int af, > case EAI_SYSTEM: > *err = NO_RECOVERY; > return errno; > - case 0: > - break; > } > > h->h_addrtype = af; > -- > 2.10.0 Thanks! Applied. Rich