summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Wolff <janw@mailbox.org>2021-10-04 19:14:58 +0200
committerJan Wolff <janw@mailbox.org>2021-10-04 19:14:58 +0200
commitf6b094c2165952417d228974326a57561954a5ae (patch)
treee86dfd34af158957a04342dc7537af8e54261ae1
parent16399fab9e592cf1e12f1fd56c11f12ae9bc575f (diff)
inet_aton -> inet_ptonHEADmain
-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);
}