From 12ddfc8eca5323feb758a7966ca51a3b52279316 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 29 Nov 2009 16:54:23 +0100 Subject: Add some braces and fix up double-indentation on multi-line if/while expressions. --- fitz/util_getopt.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'fitz/util_getopt.c') 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 */ -- cgit v1.2.3