Skip to content

Commit e236d01

Browse files
committed
fix aton types
1 parent 0ff6534 commit e236d01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

unix.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ enet_address_set_host (ENetAddress * address, const char * name)
119119
#ifdef HAS_INET_PTON
120120
if (! inet_pton (AF_INET6, name, & address -> host))
121121
#else
122-
if (! inet_aton (name, (struct in6_addr *) & address -> host))
122+
if (! inet_aton (name, (struct in_addr *) & address -> host))
123123
#endif
124124
return -1;
125125
return 0;

win32.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ enet_address_set_host (ENetAddress * address, const char * name)
8383
#ifdef HAS_INET_PTON
8484
if (! inet_pton (AF_INET6, name, & address -> host))
8585
#else
86-
if (! inet_aton (name, (struct in6_addr *) & address -> host))
86+
if (! inet_aton (name, (struct in_addr *) & address -> host))
8787
#endif
8888
return -1;
8989
return 0;

0 commit comments

Comments
 (0)