Author: eadler (ports committer)
Date: Tue Jan 10 02:59:01 2012
New Revision: 229912
URL: http://svn.freebsd.org/changeset/base/229912

Log:
  Fix warning when compiling with gcc46:
        error: variable 'origextlen' set but not used
  
  Approved by:  dim
  MFC after:    3 days

Modified:
  head/sbin/ping6/ping6.c

Modified: head/sbin/ping6/ping6.c
==============================================================================
--- head/sbin/ping6/ping6.c     Tue Jan 10 02:58:52 2012        (r229911)
+++ head/sbin/ping6/ping6.c     Tue Jan 10 02:59:01 2012        (r229912)
@@ -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),
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to