aboutsummaryrefslogtreecommitdiff
path: root/util-linux/getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/getopt.c')
-rw-r--r--util-linux/getopt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index 1666d3d30..db7db6ff8 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -308,7 +308,7 @@ static struct option *add_long_options(struct option *long_options, char *option
308 } 308 }
309 tokptr[tlen] = '\0'; 309 tokptr[tlen] = '\0';
310 if (tlen == 0) 310 if (tlen == 0)
311 bb_error_msg_and_die("empty long option specified"); 311 bb_simple_error_msg_and_die("empty long option specified");
312 } 312 }
313 long_options = xrealloc_vector(long_options, 4, long_nr); 313 long_options = xrealloc_vector(long_options, 4, long_nr);
314 long_options[long_nr].has_arg = arg_opt; 314 long_options[long_nr].has_arg = arg_opt;
@@ -380,7 +380,7 @@ int getopt_main(int argc, char **argv)
380 puts(" --"); 380 puts(" --");
381 return 0; 381 return 0;
382 } 382 }
383 bb_error_msg_and_die("missing optstring argument"); 383 bb_simple_error_msg_and_die("missing optstring argument");
384 } 384 }
385 385
386 if (argv[1][0] != '-' || compatible) { 386 if (argv[1][0] != '-' || compatible) {
@@ -416,7 +416,7 @@ int getopt_main(int argc, char **argv)
416 if (!optstr) { 416 if (!optstr) {
417 optstr = argv[++n]; 417 optstr = argv[++n];
418 if (!optstr) 418 if (!optstr)
419 bb_error_msg_and_die("missing optstring argument"); 419 bb_simple_error_msg_and_die("missing optstring argument");
420 } 420 }
421 421
422 argv[n] = name ? name : argv[0]; 422 argv[n] = name ? name : argv[0];