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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/getopt.c b/util-linux/getopt.c
index e3b051388..032d0dc6b 100644
--- a/util-linux/getopt.c
+++ b/util-linux/getopt.c
@@ -305,8 +305,8 @@ static const char *shortopts="+ao:l:n:qQs:Tu";
305 305
306int getopt_main(int argc, char *argv[]) 306int getopt_main(int argc, char *argv[])
307{ 307{
308 char *optstr=NULL; 308 const char *optstr = NULL;
309 char *name=NULL; 309 const char *name = NULL;
310 int opt; 310 int opt;
311 int compatible=0; 311 int compatible=0;
312 312
@@ -340,14 +340,14 @@ int getopt_main(int argc, char *argv[])
340 break; 340 break;
341 case 'o': 341 case 'o':
342 free(optstr); 342 free(optstr);
343 optstr=bb_xstrdup(optarg); 343 optstr = optarg;
344 break; 344 break;
345 case 'l': 345 case 'l':
346 add_long_options(optarg); 346 add_long_options(optarg);
347 break; 347 break;
348 case 'n': 348 case 'n':
349 free(name); 349 free(name);
350 name=bb_xstrdup(optarg); 350 name = optarg;
351 break; 351 break;
352 case 'q': 352 case 'q':
353 quiet_errors=1; 353 quiet_errors=1;