PING6(8): Delete unused variable

This commit is contained in:
Sebastian Huber 2013-10-31 10:12:43 +01:00
parent 998ab3634c
commit cf53967a69

View File

@ -1841,7 +1841,7 @@ pr_ip6opt(void *extbuf, size_t bufsize)
struct ip6_hbh *ext; struct ip6_hbh *ext;
int currentlen; int currentlen;
u_int8_t type; u_int8_t type;
socklen_t extlen, len, origextlen; socklen_t extlen, len;
void *databuf; void *databuf;
size_t offset; size_t offset;
u_int16_t value2; u_int16_t value2;
@ -1857,7 +1857,6 @@ pr_ip6opt(void *extbuf, size_t bufsize)
* subtract the size of a cmsg structure from the buffer size. * subtract the size of a cmsg structure from the buffer size.
*/ */
if (bufsize < (extlen + CMSG_SPACE(0))) { if (bufsize < (extlen + CMSG_SPACE(0))) {
origextlen = extlen;
extlen = bufsize - CMSG_SPACE(0); extlen = bufsize - CMSG_SPACE(0);
warnx("options truncated, showing only %u (total=%u)", warnx("options truncated, showing only %u (total=%u)",
(unsigned int)(extlen / 8 - 1), (unsigned int)(extlen / 8 - 1),