diff options
Diffstat (limited to 'wakeup.c')
| -rw-r--r-- | wakeup.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |
