From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10512 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Sabogal Newsgroups: gmane.linux.lib.musl.general Subject: [PATCH] remove dead case in gethostbyname2_r Date: Sat, 24 Sep 2016 00:38:06 -0400 Message-ID: <20160924043806.31822-1-dsabogalcc@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1474691912 20647 195.159.176.226 (24 Sep 2016 04:38:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2016 04:38:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10525-gllmg-musl=m.gmane.org@lists.openwall.com Sat Sep 24 06:38:29 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 1bnejJ-0004ex-OH for gllmg-musl@m.gmane.org; Sat, 24 Sep 2016 06:38:25 +0200 Original-Received: (qmail 32038 invoked by uid 550); 24 Sep 2016 04:38:26 -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 32012 invoked from network); 24 Sep 2016 04:38:24 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id; bh=PheF7GDzVjkw5vogn65OOWhSAfVgN2eIESa9itmiQsE=; b=lk2ift1/ycupOKkI06QvIMxObber2SfGfG42LKvHvnkrTHf8f+KhQi9nv2wSTEGrbl 49B/4D9sOLn7zrszsnr8S5KPAPwy050bkA4XWZL7ZbB3fCm5rc0q/yTTtkDdgd61ZwyU 9yJ2w+xpvvB+OCrsV04pBEfdyGTu+Jkgeb4dHHIUfsJBeCAr1X0e++5t8Tj6eXrPb+J0 YZYBHzJcKI8qMvKhuwG7K47txjGNPsXpyucb9pcrAyveiHfc9Z3bdMmD42p5G2Q/YBou b2PjGyNJpJkk53tVlULHAkZbAhTC7p4rxW3/C0EFs/UwtbU3y9i00wnu/X71J2bBxynB FLDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=PheF7GDzVjkw5vogn65OOWhSAfVgN2eIESa9itmiQsE=; b=UhpllL3gRTrXFMFX43M4Y+DSzmWIPHZSwDZjBd+wd4x/DDkP4dOhLZchEwsEpEHxkY r/AkJSEQfhLs3jvpIL7RXU6VTbB8+8XuJr775O9FLnPrFDEiFKeT3612eGei9lRKdp5s BrJIV0X1VHSFv3jKEVPTSIGvavs0pQuJcWt0btvITsEl3Ft2YuM0PDOqyEvlqR6Ule8i NPd2V3VkPvUcEjUK46Z1nnfezwluF7eyvkhZuJ3PhgmxpKFS6cULRn4j41NKWLmzXlD/ ZcHe4OZvwqbjFdRV6uKwfbWfryqAvme5TFWBj6fmeONIYQoPKxQYrxVSGOJO3vq9Se2y zLuw== X-Gm-Message-State: AE9vXwO8yd4SPgWDOATU0ncdRP9MWemuofIs2hdBE0zjt97Fsl3hyH3NF8P0pHFtxrXESA== X-Received: by 10.202.73.133 with SMTP id w127mr14669381oia.24.1474691892228; Fri, 23 Sep 2016 21:38:12 -0700 (PDT) X-Mailer: git-send-email 2.10.0 Xref: news.gmane.org gmane.linux.lib.musl.general:10512 Archived-At: 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