OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbedce6
)
compat/getopt: add {} to complex ifs
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 21 Oct 2012 15:34:14 +0000
(17:34 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 21 Oct 2012 16:05:22 +0000
(18:05 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
compat/getopt.c
patch
|
blob
|
history
diff --git
a/compat/getopt.c
b/compat/getopt.c
index
019049f
..
dd082ea
100644
(file)
--- a/
compat/getopt.c
+++ b/
compat/getopt.c
@@
-46,7
+46,7
@@
static int getopt(int argc, char *argv[], char *opts)
int c;
char *cp;
- if (sp == 1)
+ if (sp == 1)
{
if (optind >= argc ||
argv[optind][0] != '-' || argv[optind][1] == '\0')
return EOF;
@@
-54,6
+54,7
@@
static int getopt(int argc, char *argv[], char *opts)
optind++;
return EOF;
}
+ }
optopt = c = argv[optind][sp];
if (c == ':' || (cp = strchr(opts, c)) == NULL) {
fprintf(stderr, ": illegal option -- %c\n", c);