diff options
| author | Jan Wolff <janw@mailbox.org> | 2021-10-04 19:14:58 +0200 |
|---|---|---|
| committer | Jan Wolff <janw@mailbox.org> | 2021-10-04 19:14:58 +0200 |
| commit | f6b094c2165952417d228974326a57561954a5ae (patch) | |
| tree | e86dfd34af158957a04342dc7537af8e54261ae1 /wakeup.c | |
| parent | 16399fab9e592cf1e12f1fd56c11f12ae9bc575f (diff) | |
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); } |
