summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 02:51:00 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2006-06-20 02:51:00 +0000
commitaaa6bdbaba83340b161fba1f9cbe14e8e82b4d2c (patch)
tree320dd52a69d07530c3f44251634bf9b15feed533 /idlc
parent698a453f0f871ef4ebe771863e81ddf572243e8c (diff)
INTEGRATION: CWS warnings01 (1.1.148); FILE MERGED
2005/09/23 00:07:37 sb 1.1.148.2: RESYNC: (1.1-1.2); FILE MERGED 2005/08/29 14:14:27 sb 1.1.148.1: #i53898# Made code warning-free.
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/preproc/getopt.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/idlc/source/preproc/getopt.c b/idlc/source/preproc/getopt.c
index 000d8ae3d712..04b35ab5ba72 100644
--- a/idlc/source/preproc/getopt.c
+++ b/idlc/source/preproc/getopt.c
@@ -4,9 +4,9 @@
*
* $RCSfile: getopt.c,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 18:14:28 $
+ * last change: $Author: hr $ $Date: 2006-06-20 03:51:00 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -47,10 +47,11 @@ int
getopt(int argc, char *const argv[], const char *opts)
{
static int sp = 1;
- register c;
+ register int c;
register char *cp;
if (sp == 1)
+ {
if (optind >= argc ||
argv[optind][0] != '-' || argv[optind][1] == '\0')
return -1;
@@ -60,6 +61,7 @@ int
optind++;
return -1;
}
+ }
optopt = c = argv[optind][sp];
if (c == ':' || (cp = strchr(opts, c)) == 0)
{