From c75fa153a93eca56aec4f398770d3afc249ae5b5 Mon Sep 17 00:00:00 2001 From: Andreas Jaeger Date: Wed, 6 Jul 2011 22:29:45 -0400 Subject: Fix warnings in resolver code --- resolv/res_comp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'resolv') 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); } -- cgit v1.1