]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - getopt.h
tcl_tests: ca.try: Ignore openssl crl exit status for 'corrupted CRL' test
[openssl-gost/engine.git] / getopt.h
index bcbff179eb20d8b688eb8390e89fd4a53e712c81..aea89a0a2bd45ee1d48f38bc3f5cb6c0d17a6511 100644 (file)
--- a/getopt.h
+++ b/getopt.h
@@ -181,7 +181,7 @@ static void
 permute_args(int panonopt_start, int panonopt_end, int opt_end,
        char * const *nargv)
 {
-       int cstart, cyclelen, i, j, ncycle, nnonopts, nopts, pos;
+       int cyclelen, i, j, ncycle, nnonopts, nopts;
        char *swap;
 
        /*
@@ -193,8 +193,8 @@ permute_args(int panonopt_start, int panonopt_end, int opt_end,
        cyclelen = (opt_end - panonopt_start) / ncycle;
 
        for (i = 0; i < ncycle; i++) {
-               cstart = panonopt_end+i;
-               pos = cstart;
+               int cstart = panonopt_end+i;
+               int pos = cstart;
                for (j = 0; j < cyclelen; j++) {
                        if (pos >= panonopt_end)
                                pos -= nnonopts;