diff options
Diffstat (limited to 'networking/ether-wake.c')
-rw-r--r-- | networking/ether-wake.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c index e971ba39c..59055a951 100644 --- a/networking/ether-wake.c +++ b/networking/ether-wake.c | |||
@@ -199,12 +199,8 @@ int ether_wake_main(int argc, char **argv) | |||
199 | whereto.sa_family = 0; | 199 | whereto.sa_family = 0; |
200 | strcpy(whereto.sa_data, ifname); | 200 | strcpy(whereto.sa_data, ifname); |
201 | #endif | 201 | #endif |
202 | 202 | xsendto(s, outpack, pktsize, (struct sockaddr *)&whereto, sizeof(whereto)); | |
203 | if (sendto(s, outpack, pktsize, 0, (struct sockaddr *)&whereto, sizeof(whereto)) < 0) | ||
204 | bb_perror_msg(bb_msg_write_error); | ||
205 | |||
206 | close(s); | 203 | close(s); |
207 | |||
208 | return EXIT_SUCCESS; | 204 | return EXIT_SUCCESS; |
209 | } | 205 | } |
210 | 206 | ||