diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-20 10:52:59 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-20 10:52:59 +0000 |
commit | 9c337c655b57b28ca97ba6ca599371d1e4963f6e (patch) | |
tree | 69015ddff8d83a541b5ad0c1275f349c28400d6a /cpukit | |
parent | 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-9c337c655b57b28ca97ba6ca599371d1e4963f6e.tar.bz2 |
2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/libc/res_mkupdate.c (res_mkupdate):
Remove unused var "sp1".
Diffstat (limited to 'cpukit')
-rw-r--r-- | cpukit/ChangeLog | 2 | ||||
-rw-r--r-- | cpukit/libnetworking/libc/res_mkupdate.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index b530cbea95..c583618f9c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,7 @@ 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org> + * libnetworking/libc/res_mkupdate.c (res_mkupdate): + Remove unused var "sp1". * libfs/src/dosfs/msdos_file.c (msdos_file_datasync): Remove unused var "rc". diff --git a/cpukit/libnetworking/libc/res_mkupdate.c b/cpukit/libnetworking/libc/res_mkupdate.c index 74eb5b18c4..402a9250ca 100644 --- a/cpukit/libnetworking/libc/res_mkupdate.c +++ b/cpukit/libnetworking/libc/res_mkupdate.c @@ -64,7 +64,7 @@ int res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { ns_updrec *rrecp_start = rrecp_in; HEADER *hp; - u_char *cp, *sp1, *sp2, *startp, *endp; + u_char *cp, *sp2, *startp, *endp; int n, i, soanum, multiline; ns_updrec *rrecp; struct in_addr ina; @@ -89,7 +89,6 @@ res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { hp->id = htons(++_res.id); hp->opcode = ns_o_update; hp->rcode = NOERROR; - sp1 = buf + 2*INT16SZ; /* save pointer to zocount */ cp = buf + HFIXEDSZ; buflen -= HFIXEDSZ; dpp = dnptrs; |