This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix warning


This fixes:
res_comp.c:155:6: warning: variable âppchâ set but not used [-Wunused-but-set-
variable]

Andreas

2011-07-05  Andreas Jaeger  <aj@suse.de>

	* resolv/res_comp.c (libresolv_hidden_def): Remove unused
	variable.

-- 
 Andreas Jaeger, Program Manager openSUSE
  aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
   SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 NÃrnberg, Germany
    GF: Jeff Hawn, Jennifer Guild, Felix ImendÃrffer, HRB 16746 (AG NÃrnberg)
     GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126
diff --git a/resolv/res_comp.c b/resolv/res_comp.c
index 8157b97..c7212fa 100644
--- a/resolv/res_comp.c
+++ b/resolv/res_comp.c
@@ -152,7 +152,7 @@ libresolv_hidden_def (dn_skipname)
 
 int
 res_hnok(const char *dn) {
-	int ppch = '\0', pch = PERIOD, ch = *dn++;
+	int pch = PERIOD, ch = *dn++;
 
 	while (ch != '\0') {
 		int nch = *dn++;
@@ -169,7 +169,7 @@ res_hnok(const char *dn) {
 			if (!middlechar(ch))
 				return (0);
 		}
-		ppch = pch, pch = ch, ch = nch;
+		pch = ch, ch = nch;
 	}
 	return (1);
 }

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]