about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2011-07-06 22:29:45 -0400
committerUlrich Drepper <drepper@gmail.com>2011-07-06 22:29:45 -0400
commitc75fa153a93eca56aec4f398770d3afc249ae5b5 (patch)
tree505093596ca2bd66d92c87fb2bc2dc70d91fa707
parent1a544854c23369da3ab3f3a3298fab1a4802ea62 (diff)
downloadglibc-c75fa153a93eca56aec4f398770d3afc249ae5b5.tar.gz
glibc-c75fa153a93eca56aec4f398770d3afc249ae5b5.tar.xz
glibc-c75fa153a93eca56aec4f398770d3afc249ae5b5.zip
Fix warnings in resolver code
-rw-r--r--ChangeLog4
-rw-r--r--resolv/res_comp.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a90d02938..bed2e27b04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-05  Andreas Jaeger  <aj@suse.de>
+
+	* resolv/res_comp.c (dn_skipname): Remove unused variable.
+
 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
 
 	* nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
diff --git a/resolv/res_comp.c b/resolv/res_comp.c
index 8157b97566..c7212fab11 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);
 }