aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/utils.c')
-rw-r--r--networking/libiproute/utils.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/networking/libiproute/utils.c b/networking/libiproute/utils.c
index 2c23cd294..fa1548609 100644
--- a/networking/libiproute/utils.c
+++ b/networking/libiproute/utils.c
@@ -209,10 +209,10 @@ int get_prefix_1(inet_prefix * dst, char *arg, int family)
209int get_addr(inet_prefix * dst, char *arg, int family) 209int get_addr(inet_prefix * dst, char *arg, int family)
210{ 210{
211 if (family == AF_PACKET) { 211 if (family == AF_PACKET) {
212 error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg); 212 bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg);
213 } 213 }
214 if (get_addr_1(dst, arg, family)) { 214 if (get_addr_1(dst, arg, family)) {
215 error_msg_and_die("an inet address is expected rather than \"%s\".", arg); 215 bb_error_msg_and_die("an inet address is expected rather than \"%s\".", arg);
216 } 216 }
217 return 0; 217 return 0;
218} 218}
@@ -220,10 +220,10 @@ int get_addr(inet_prefix * dst, char *arg, int family)
220int get_prefix(inet_prefix * dst, char *arg, int family) 220int get_prefix(inet_prefix * dst, char *arg, int family)
221{ 221{
222 if (family == AF_PACKET) { 222 if (family == AF_PACKET) {
223 error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg); 223 bb_error_msg_and_die("\"%s\" may be inet address, but it is not allowed in this context.", arg);
224 } 224 }
225 if (get_prefix_1(dst, arg, family)) { 225 if (get_prefix_1(dst, arg, family)) {
226 error_msg_and_die("an inet address is expected rather than \"%s\".", arg); 226 bb_error_msg_and_die("an inet address is expected rather than \"%s\".", arg);
227 } 227 }
228 return 0; 228 return 0;
229} 229}
@@ -233,32 +233,32 @@ __u32 get_addr32(char *name)
233 inet_prefix addr; 233 inet_prefix addr;
234 234
235 if (get_addr_1(&addr, name, AF_INET)) { 235 if (get_addr_1(&addr, name, AF_INET)) {
236 error_msg_and_die("an IP address is expected rather than \"%s\"", name); 236 bb_error_msg_and_die("an IP address is expected rather than \"%s\"", name);
237 } 237 }
238 return addr.data[0]; 238 return addr.data[0];
239} 239}
240 240
241void incomplete_command() 241void incomplete_command()
242{ 242{
243 error_msg("Command line is not complete. Try option \"help\""); 243 bb_error_msg("Command line is not complete. Try option \"help\"");
244 exit(-1); 244 exit(-1);
245} 245}
246 246
247void invarg(char *msg, char *arg) 247void invarg(char *msg, char *arg)
248{ 248{
249 error_msg("argument \"%s\" is wrong: %s", arg, msg); 249 bb_error_msg("argument \"%s\" is wrong: %s", arg, msg);
250 exit(-1); 250 exit(-1);
251} 251}
252 252
253void duparg(char *key, char *arg) 253void duparg(char *key, char *arg)
254{ 254{
255 error_msg("duplicate \"%s\": \"%s\" is the second value.", key, arg); 255 bb_error_msg("duplicate \"%s\": \"%s\" is the second value.", key, arg);
256 exit(-1); 256 exit(-1);
257} 257}
258 258
259void duparg2(char *key, char *arg) 259void duparg2(char *key, char *arg)
260{ 260{
261 error_msg("either \"%s\" is duplicate, or \"%s\" is a garbage.", key, arg); 261 bb_error_msg("either \"%s\" is duplicate, or \"%s\" is a garbage.", key, arg);
262 exit(-1); 262 exit(-1);
263} 263}
264 264