mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Get rid of ntohs in ip6_ntop.
Byte-swapping is handled by the initial loop that reads into an array of 16-bit integers. That initial loop was added by me in r29708.
This commit is contained in:
parent
570a77b414
commit
5fd515b039
1 changed files with 1 additions and 2 deletions
|
|
@ -227,8 +227,7 @@ ip6_ntop(const ip6_addr_t *ip6, char *dst, size_t len)
|
|||
len - (p - dst)) == NULL)
|
||||
return (NULL);
|
||||
return (dst);
|
||||
} else p += sprintf(p, "%x:",
|
||||
ntohs(data[i / 2]));
|
||||
} else p += sprintf(p, "%x:", data[i / 2]);
|
||||
}
|
||||
if (best.base + 2 + best.len == IP6_ADDR_LEN) {
|
||||
*p = '\0';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue