Skip to content

Commit

Permalink
fix aton types
Browse files Browse the repository at this point in the history
  • Loading branch information
proller committed May 4, 2015
1 parent 0ff6534 commit e236d01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ enet_address_set_host (ENetAddress * address, const char * name)
#ifdef HAS_INET_PTON
if (! inet_pton (AF_INET6, name, & address -> host))
#else
if (! inet_aton (name, (struct in6_addr *) & address -> host))
if (! inet_aton (name, (struct in_addr *) & address -> host))
#endif
return -1;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ enet_address_set_host (ENetAddress * address, const char * name)
#ifdef HAS_INET_PTON
if (! inet_pton (AF_INET6, name, & address -> host))
#else
if (! inet_aton (name, (struct in6_addr *) & address -> host))
if (! inet_aton (name, (struct in_addr *) & address -> host))
#endif
return -1;
return 0;
Expand Down

0 comments on commit e236d01

Please sign in to comment.