mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-23 04:35:48 +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;
|
||||
int currentlen;
|
||||
u_int8_t type;
|
||||
socklen_t extlen, len, origextlen;
|
||||
socklen_t extlen, len;
|
||||
void *databuf;
|
||||
size_t offset;
|
||||
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.
|
||||
*/
|
||||
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),
|
||||
|
Loading…
x
Reference in New Issue
Block a user