aboutsummaryrefslogtreecommitdiff
path: root/networking/ether-wake.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ether-wake.c')
-rw-r--r--networking/ether-wake.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index acaac16f8..f45d43609 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -182,7 +182,7 @@ static int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd)
182 byte_cnt = sscanf(ethoptarg, "%u.%u.%u.%u", 182 byte_cnt = sscanf(ethoptarg, "%u.%u.%u.%u",
183 &passwd[0], &passwd[1], &passwd[2], &passwd[3]); 183 &passwd[0], &passwd[1], &passwd[2], &passwd[3]);
184 if (byte_cnt < 4) { 184 if (byte_cnt < 4) {
185 bb_error_msg("can't read Wake-On-LAN pass"); 185 bb_simple_error_msg("can't read Wake-On-LAN pass");
186 return 0; 186 return 0;
187 } 187 }
188// TODO: check invalid numbers >255?? 188// TODO: check invalid numbers >255??
@@ -266,7 +266,7 @@ int ether_wake_main(int argc UNUSED_PARAM, char **argv)
266 /* This is necessary for broadcasts to work */ 266 /* This is necessary for broadcasts to work */
267 if (flags /* & 1 OPT_BROADCAST */) { 267 if (flags /* & 1 OPT_BROADCAST */) {
268 if (setsockopt_broadcast(s) != 0) 268 if (setsockopt_broadcast(s) != 0)
269 bb_perror_msg("SO_BROADCAST"); 269 bb_simple_perror_msg("SO_BROADCAST");
270 } 270 }
271 271
272#if defined(PF_PACKET) 272#if defined(PF_PACKET)