diff options
author | Tor Andersson <tor@ghostscript.com> | 2009-11-29 16:54:23 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2009-11-29 16:54:23 +0100 |
commit | 12ddfc8eca5323feb758a7966ca51a3b52279316 (patch) | |
tree | 25f6e8a18625c0874b350b915f2ce5c0d738b7f3 /fitz/util_getopt.c | |
parent | 12f9f21bbcb99a397d06ceff6d83bbc94397580e (diff) | |
download | mupdf-12ddfc8eca5323feb758a7966ca51a3b52279316.tar.xz |
Add some braces and fix up double-indentation on multi-line if/while expressions.
Diffstat (limited to 'fitz/util_getopt.c')
-rw-r--r-- | fitz/util_getopt.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/fitz/util_getopt.c b/fitz/util_getopt.c index 22ac8148..b2cf1b71 100644 --- a/fitz/util_getopt.c +++ b/fitz/util_getopt.c @@ -47,7 +47,7 @@ static char sccsid[] = "@(#)getopt.c 4.13 (Berkeley) 2/23/91"; /* * get option letter from argument vector */ -int opterr = 1, /* if error message should be printed */ +int opterr = 1, /* if error message should be printed */ optind = 1, /* index into parent argv vector */ optopt; /* character checked for validity */ char *optarg; /* argument associated with option */ @@ -87,8 +87,7 @@ int fz_getopt(int nargc, char * const * nargv, const char *ostr) p = *nargv; else ++p; - (void)fprintf(stderr, "%s: illegal option -- %c\n", - p, optopt); + (void)fprintf(stderr, "%s: illegal option -- %c\n", p, optopt); } return(BADCH); } @@ -107,9 +106,7 @@ int fz_getopt(int nargc, char * const * nargv, const char *ostr) else ++p; if (opterr) - (void)fprintf(stderr, - "%s: option requires an argument -- %c\n", - p, optopt); + (void)fprintf(stderr, "%s: option requires an argument -- %c\n", p, optopt); return(BADCH); } else /* white space */ |