mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 02:22:03 +08:00
PING6(8): Delete unused variable
This commit is contained in:
parent
998ab3634c
commit
cf53967a69
@ -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),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user