aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/ether-wake.c2
-rw-r--r--networking/nameif.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/networking/ether-wake.c b/networking/ether-wake.c
index aaed4a0ff..cc2fb62a3 100644
--- a/networking/ether-wake.c
+++ b/networking/ether-wake.c
@@ -270,7 +270,7 @@ static inline int get_wol_pw(const char *ethoptarg, unsigned char *wol_passwd)
270 byte_cnt = sscanf(ethoptarg, "%d.%d.%d.%d", 270 byte_cnt = sscanf(ethoptarg, "%d.%d.%d.%d",
271 &passwd[0], &passwd[1], &passwd[2], &passwd[3]); 271 &passwd[0], &passwd[1], &passwd[2], &passwd[3]);
272 if (byte_cnt < 4) { 272 if (byte_cnt < 4) {
273 bb_error_msg("unable to read the Wake-On-LAN pass"); 273 bb_error_msg("cannot read Wake-On-LAN pass");
274 return 0; 274 return 0;
275 } 275 }
276 276
diff --git a/networking/nameif.c b/networking/nameif.c
index 385e7fb71..52aad2873 100644
--- a/networking/nameif.c
+++ b/networking/nameif.c
@@ -78,7 +78,7 @@ int nameif_main(int argc, char **argv)
78 78
79 while (*a) { 79 while (*a) {
80 if (strlen(*a) > IF_NAMESIZE) 80 if (strlen(*a) > IF_NAMESIZE)
81 bb_error_msg_and_die("interface name `%s' " 81 bb_error_msg_and_die("interface name '%s' "
82 "too long", *a); 82 "too long", *a);
83 ch = xzalloc(sizeof(mactable_t)); 83 ch = xzalloc(sizeof(mactable_t));
84 ch->ifname = xstrdup(*a++); 84 ch->ifname = xstrdup(*a++);
@@ -104,7 +104,7 @@ int nameif_main(int argc, char **argv)
104 ch = xzalloc(sizeof(mactable_t)); 104 ch = xzalloc(sizeof(mactable_t));
105 ch->ifname = xstrndup(line_ptr, name_length); 105 ch->ifname = xstrndup(line_ptr, name_length);
106 if (name_length > IF_NAMESIZE) 106 if (name_length > IF_NAMESIZE)
107 bb_error_msg_and_die("interface name `%s' " 107 bb_error_msg_and_die("interface name '%s' "
108 "too long", ch->ifname); 108 "too long", ch->ifname);
109 line_ptr += name_length; 109 line_ptr += name_length;
110 line_ptr += strspn(line_ptr, " \t"); 110 line_ptr += strspn(line_ptr, " \t");