diff options
Diffstat (limited to 'libs/pbd/msvc/getopt_long.c')
-rw-r--r-- | libs/pbd/msvc/getopt_long.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/msvc/getopt_long.c b/libs/pbd/msvc/getopt_long.c index 06c459ab84..bf10e5df58 100644 --- a/libs/pbd/msvc/getopt_long.c +++ b/libs/pbd/msvc/getopt_long.c @@ -152,7 +152,7 @@ gcd(int a, int b) b = c; c = a % b; } - + return b; } @@ -251,7 +251,7 @@ start: place = EMSG; if (IN_ORDER) { /* - * GNU extension: + * GNU extension: * return non-option as argument to option 1 */ optarg = nargv[optind++]; @@ -301,7 +301,7 @@ start: } if (optchar == 'W' && oli[1] == ';') { /* -W long-option */ /* XXX: what if no long options provided (called by getopt)? */ - if (*place) + if (*place) return -2; if (++optind >= nargc) { /* no arg */ @@ -435,7 +435,7 @@ getopt_long(int nargc, has_equal++; } else current_argv_len = strlen(current_argv); - + for (i = 0; long_options[i].name; i++) { /* find matching long option */ if (strncmp(current_argv, long_options[i].name, @@ -534,7 +534,7 @@ getopt_long(int nargc, if (long_options[match].flag) { *long_options[match].flag = long_options[match].val; retval = 0; - } else + } else retval = long_options[match].val; if (idx) *idx = match; |