diff options
author | Sander Vesik <svesik@openoffice.org> | 2004-04-21 12:24:33 +0000 |
---|---|---|
committer | Sander Vesik <svesik@openoffice.org> | 2004-04-21 12:24:33 +0000 |
commit | 7dca155e22a3a911eb9d7e1a47e110c026eaefb6 (patch) | |
tree | d85f83fc5046a315a6c6acb1256bacc2518dde38 /soltools | |
parent | a3981e9263aabc9a58ead03f4d708d146390727b (diff) |
INTEGRATION: CWS ooo20040329 (1.1.92); FILE MERGED
2004/03/17 12:40:59 waratah 1.1.92.1: #i1858# add explicit int type where needed
include extra braces to make code more obvious for debugging
Diffstat (limited to 'soltools')
-rw-r--r-- | soltools/cpp/_getopt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/soltools/cpp/_getopt.c b/soltools/cpp/_getopt.c index 3937012cab26..7c56887ecab1 100644 --- a/soltools/cpp/_getopt.c +++ b/soltools/cpp/_getopt.c @@ -13,10 +13,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; @@ -26,6 +27,7 @@ int optind++; return -1; } + } optopt = c = argv[optind][sp]; if (c == ':' || (cp = strchr(opts, c)) == 0) { |