summaryrefslogtreecommitdiffstats
path: root/compat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-21 17:34:14 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-21 18:05:22 +0200
commit38797dc31b65b7cab911a800dc974ed9d1d6a6cf (patch)
tree14bd2c3ec8eba6337c8a3a7771a1248684b0f08b /compat
parentfbedce6b8512c33df4cc77996ec3e54221ca7511 (diff)
downloadffmpeg-streaming-38797dc31b65b7cab911a800dc974ed9d1d6a6cf.zip
ffmpeg-streaming-38797dc31b65b7cab911a800dc974ed9d1d6a6cf.tar.gz
compat/getopt: add {} to complex ifs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'compat')
-rw-r--r--compat/getopt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/getopt.c b/compat/getopt.c
index 019049f..dd082ea 100644
--- 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);
OpenPOWER on IntegriCloud