mirror of
https://github.com/switchbrew/libnx.git
synced 2025-08-07 00:29:23 +02:00
inet_addr: update old-style function definitions
This commit is contained in:
parent
f91fdca687
commit
4f0ba719dd
@ -160,11 +160,7 @@ static int inet_pton4(const char *src, void *dst) {
|
|||||||
* Paul Vixie, 1996.
|
* Paul Vixie, 1996.
|
||||||
*/
|
*/
|
||||||
static const char *
|
static const char *
|
||||||
inet_ntop6(src, dst, size)
|
inet_ntop6(const u_char *src, char *dst, size_t size) {
|
||||||
const u_char *src;
|
|
||||||
char *dst;
|
|
||||||
size_t size;
|
|
||||||
{
|
|
||||||
/*
|
/*
|
||||||
* Note that int32_t and int16_t need only be "at least" large enough
|
* Note that int32_t and int16_t need only be "at least" large enough
|
||||||
* to contain a value of the specified size. On some systems, like
|
* to contain a value of the specified size. On some systems, like
|
||||||
@ -276,10 +272,7 @@ inet_ntop6(src, dst, size)
|
|||||||
* Paul Vixie, 1996.
|
* Paul Vixie, 1996.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
inet_pton6(src, dst)
|
inet_pton6(const char *src, u_char *dst) {
|
||||||
const char *src;
|
|
||||||
u_char *dst;
|
|
||||||
{
|
|
||||||
static const char xdigits_l[] = "0123456789abcdef",
|
static const char xdigits_l[] = "0123456789abcdef",
|
||||||
xdigits_u[] = "0123456789ABCDEF";
|
xdigits_u[] = "0123456789ABCDEF";
|
||||||
u_char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
|
u_char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
|
||||||
|
Loading…
Reference in New Issue
Block a user