summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/res_comp.c
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-02 05:23:46 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-02 05:23:46 +0000
commit75e454c0f8249b106b092220d3d7d7f5a9498833 (patch)
treef861ff4e738909cc3baedc73d02db52e7baa9473 /cpukit/libnetworking/libc/res_comp.c
parentNew (Missing from BSP import). (diff)
downloadrtems-75e454c0f8249b106b092220d3d7d7f5a9498833.tar.bz2
2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/res_comp.c: Eliminate unused var "ppch".
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/libc/res_comp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libnetworking/libc/res_comp.c b/cpukit/libnetworking/libc/res_comp.c
index 7240e56081..377d283ac5 100644
--- a/cpukit/libnetworking/libc/res_comp.c
+++ b/cpukit/libnetworking/libc/res_comp.c
@@ -150,7 +150,7 @@ dn_skipname(const u_char *ptr, const u_char *eom) {
int
res_hnok(const char *dn)
{
- int ppch = '\0', pch = PERIOD, ch = *dn++;
+ int pch = PERIOD, ch = *dn++;
while (ch != '\0') {
int nch = *dn++;
@@ -167,7 +167,7 @@ res_hnok(const char *dn)
if (!middlechar(ch))
return (0);
}
- ppch = pch, pch = ch, ch = nch;
+ pch = ch, ch = nch;
}
return (1);
}