summaryrefslogtreecommitdiff
path: root/wakeup.c
diff options
context:
space:
mode:
Diffstat (limited to 'wakeup.c')
-rw-r--r--wakeup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wakeup.c b/wakeup.c
index 01ae3af..62dbc16 100644
--- a/wakeup.c
+++ b/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);
}