summaryrefslogtreecommitdiffstats
path: root/sbin/ping6
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-10 02:59:01 +0000
committereadler <eadler@FreeBSD.org>2012-01-10 02:59:01 +0000
commitaec8c8d4cc80daa9451606ba6f69e52526c2399b (patch)
tree6e06989d76d1d4b4d138a2b2568314b44930642d /sbin/ping6
parent9579af1f4029669e27ddad76a215656fdbdec9b0 (diff)
downloadFreeBSD-src-aec8c8d4cc80daa9451606ba6f69e52526c2399b.zip
FreeBSD-src-aec8c8d4cc80daa9451606ba6f69e52526c2399b.tar.gz
Fix warning when compiling with gcc46:
error: variable 'origextlen' set but not used Approved by: dim MFC after: 3 days
Diffstat (limited to 'sbin/ping6')
-rw-r--r--sbin/ping6/ping6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c
index a49ed5d..711561e 100644
--- a/sbin/ping6/ping6.c
+++ b/sbin/ping6/ping6.c
@@ -1812,7 +1812,7 @@ pr_ip6opt(void *extbuf, size_t bufsize)
struct ip6_hbh *ext;
int currentlen;
u_int8_t type;
- socklen_t extlen, len, origextlen;
+ socklen_t extlen, len;
void *databuf;
size_t offset;
u_int16_t value2;
@@ -1828,7 +1828,6 @@ pr_ip6opt(void *extbuf, size_t bufsize)
* subtract the size of a cmsg structure from the buffer size.
*/
if (bufsize < (extlen + CMSG_SPACE(0))) {
- origextlen = extlen;
extlen = bufsize - CMSG_SPACE(0);
warnx("options truncated, showing only %u (total=%u)",
(unsigned int)(extlen / 8 - 1),
OpenPOWER on IntegriCloud