diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 11:34:39 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 11:34:39 +0000 |
commit | b290889f0265e1278e8a868aa82a65bcc9099b0f (patch) | |
tree | 2fc8dcc3b7f525f61817417e32c2827b57e17b8a /networking/ether-wake.c | |
parent | 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (diff) | |
download | busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.tar.gz busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.tar.bz2 busybox-w32-b290889f0265e1278e8a868aa82a65bcc9099b0f.zip |
- add xsendto and use where appropriate; shrink iplink; sanitize libiproute a bit.
-916 byte
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 | ||