summaryrefslogtreecommitdiff
path: root/fitz/util_getopt.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/util_getopt.c')
-rw-r--r--fitz/util_getopt.c9
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 */