diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-18 22:04:09 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-11-18 22:04:09 +0000 |
commit | 89f0b3486dfea233e6000f9af95b39a3ea7fd96e (patch) | |
tree | fc0d65e0d33b5b526b0d44d4c4da8143be3b53b1 /networking | |
parent | 61126ab30a90b74e45a79ccb97074ab71afa6054 (diff) | |
download | busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.gz busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.tar.bz2 busybox-w32-89f0b3486dfea233e6000f9af95b39a3ea7fd96e.zip |
rodata cleanup. "unable to" == "cannot". -300 bytes
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ether-wake.c | 2 | ||||
-rw-r--r-- | networking/nameif.c | 4 |
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"); |