Browse Source

inet_aton -> inet_pton

main
Jan W. 2 months ago
parent
commit
f6b094c216
  1. 2
      wakeup.c

2
wakeup.c

@ -28,7 +28,7 @@ int bcast_wakeup(const char* macAddr, const char* broadcast, in_port_t port)
sizeof(opt_broadcast));
struct in_addr ip;
if (!inet_aton(broadcast, &ip)) {
if (!inet_pton(AF_INET, broadcast, &ip)) {
fputs("could not parse broadcast IP address", stderr);
exit(EXIT_FAILURE);
}

Loading…
Cancel
Save