diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-07 22:29:34 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-04-07 22:29:34 +0000 |
commit | 7ff3d4b7f327ef1747b89c316b66afaaa7711228 (patch) | |
tree | 7dde39f5d578b0f4951ca4539d7c3d4418af7afe | |
parent | 410a2d2d7e28cf2280ef19bb5d1a9e11c5b4468a (diff) |
bn_test: move rc initialization to its own line
-rw-r--r-- | regress/lib/libcrypto/bn/bn_test.c | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/regress/lib/libcrypto/bn/bn_test.c b/regress/lib/libcrypto/bn/bn_test.c index 1476a92ee2d..4cefc27ab73 100644 --- a/regress/lib/libcrypto/bn/bn_test.c +++ b/regress/lib/libcrypto/bn/bn_test.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bn_test.c,v 1.9 2023/04/07 22:28:21 tb Exp $ */ +/* $OpenBSD: bn_test.c,v 1.10 2023/04/07 22:29:33 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -774,7 +774,8 @@ int test_sqr(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *c = NULL, *d = NULL, *e = NULL; - int i, rc = 0; + int i; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -1552,7 +1553,8 @@ int test_gf2m_add(BIO *bp) { BIGNUM *a = NULL, *b = NULL, *c = NULL; - int i, rc = 0; + int i; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -1749,9 +1751,10 @@ int test_gf2m_mod_sqr(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL; - int i, j, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -1811,9 +1814,10 @@ int test_gf2m_mod_inv(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL; - int i, j, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -1869,9 +1873,10 @@ int test_gf2m_mod_div(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL, *e = NULL, *f = NULL; - int i, j, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -1937,9 +1942,10 @@ int test_gf2m_mod_exp(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL, *e = NULL, *f = NULL; - int i, j, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -2013,9 +2019,10 @@ int test_gf2m_mod_sqrt(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL, *e = NULL, *f = NULL; - int i, j, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j; + int rc = 0; if ((a = BN_new()) == NULL) goto err; @@ -2077,9 +2084,10 @@ int test_gf2m_mod_solve_quad(BIO *bp, BN_CTX *ctx) { BIGNUM *a = NULL, *b[2] = { 0 }, *c = NULL, *d = NULL, *e = NULL; - int i, j, s = 0, t, rc = 0; int p0[] = { 163, 7, 6, 3, 0, -1 }; int p1[] = { 193, 15, 0, -1 }; + int i, j, s = 0, t; + int rc = 0; if ((a = BN_new()) == NULL) goto err; |