diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 15:34:39 +0400 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2007-04-12 15:34:39 +0400 |
commit | b290889f0265e1278e8a868aa82a65bcc9099b0f (patch) | |
tree | 2fc8dcc3b7f525f61817417e32c2827b57e17b8a /networking/ether-wake.c | |
parent | 51742f4bb0c57a4d5063ece9437a2f34a42e52c8 (diff) |
- 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) whereto.sa_family = 0; strcpy(whereto.sa_data, ifname); #endif - - if (sendto(s, outpack, pktsize, 0, (struct sockaddr *)&whereto, sizeof(whereto)) < 0) - bb_perror_msg(bb_msg_write_error); - + xsendto(s, outpack, pktsize, (struct sockaddr *)&whereto, sizeof(whereto)); close(s); - return EXIT_SUCCESS; } |