/* return values */
#define BADCH (int)'?'
#define BADARG ((*options == ':') ? (int)':' : (int)'?')
-#define INORDER (int)1
+#define INORDER (int)1
#define EMSG ""
permute_args(nonopt_start, nonopt_end,
optind, nargv);
optind -= nonopt_end - nonopt_start;
- }
- else if (nonopt_start != -1) {
+ } else if (nonopt_start != -1) {
/*
* If we skipped non-options, set optind
* to the first of them.
++optind;
} else { /* takes (optional) argument */
optarg = NULL;
+ if (*place) { /* no white space */
DIAG_OFF_CAST_QUAL
- if (*place) /* no white space */
optarg = (char *)place;
DIAG_ON_CAST_QUAL
- else if (oli[1] != ':') { /* arg not optional */
+ } else if (oli[1] != ':') { /* arg not optional */
if (++optind >= nargc) { /* no arg */
place = EMSG;
if (PRINT_ERROR)