diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-02 05:23:46 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-02 05:23:46 +0000 |
commit | 75e454c0f8249b106b092220d3d7d7f5a9498833 (patch) | |
tree | f861ff4e738909cc3baedc73d02db52e7baa9473 | |
parent | New (Missing from BSP import). (diff) | |
download | rtems-75e454c0f8249b106b092220d3d7d7f5a9498833.tar.bz2 |
2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/res_comp.c: Eliminate unused var "ppch".
-rw-r--r-- | cpukit/ChangeLog | 4 | ||||
-rw-r--r-- | cpukit/libnetworking/libc/res_comp.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 7eaa311429..4eb00641ae 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,7 @@ +2011-10-02 Ralf Corsépius <ralf.corsepius@rtems.org> + + * libnetworking/libc/res_comp.c: Eliminate unused var "ppch". + 2011-09-30 Ralf Corsépius <ralf.corsepius@rtems.org> * configure.ac: Check for size of time_t. 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); } |