summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2025-01-08 20:18:12 +0000
committertb <>2025-01-08 20:18:12 +0000
commite70a35d60c6eeb547186cecf240202b9d25903f4 (patch)
treea7e9c6cc3588e5686857eea04e733852a29c6cef
parentc858fb0150f1e0a4536c83e7545a1f71c39a1bb1 (diff)
downloadopenbsd-e70a35d60c6eeb547186cecf240202b9d25903f4.tar.gz
openbsd-e70a35d60c6eeb547186cecf240202b9d25903f4.tar.bz2
openbsd-e70a35d60c6eeb547186cecf240202b9d25903f4.zip
Remove parentheses in return statements
-rw-r--r--src/lib/libcrypto/bn/bn_recp.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/bn/bn_recp.c b/src/lib/libcrypto/bn/bn_recp.c
index 4905dffa88..5990413052 100644
--- a/src/lib/libcrypto/bn/bn_recp.c
+++ b/src/lib/libcrypto/bn/bn_recp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: bn_recp.c,v 1.23 2025/01/08 20:13:52 tb Exp $ */ 1/* $OpenBSD: bn_recp.c,v 1.24 2025/01/08 20:18:12 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -77,11 +77,11 @@ BN_RECP_CTX_new(void)
77 BN_RECP_CTX *ret; 77 BN_RECP_CTX *ret;
78 78
79 if ((ret = malloc(sizeof(BN_RECP_CTX))) == NULL) 79 if ((ret = malloc(sizeof(BN_RECP_CTX))) == NULL)
80 return (NULL); 80 return NULL;
81 81
82 BN_RECP_CTX_init(ret); 82 BN_RECP_CTX_init(ret);
83 ret->flags = BN_FLG_MALLOCED; 83 ret->flags = BN_FLG_MALLOCED;
84 return (ret); 84 return ret;
85} 85}
86 86
87void 87void
@@ -104,7 +104,7 @@ BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx)
104 BN_zero(&recp->Nr); 104 BN_zero(&recp->Nr);
105 recp->num_bits = BN_num_bits(d); 105 recp->num_bits = BN_num_bits(d);
106 recp->shift = 0; 106 recp->shift = 0;
107 return (1); 107 return 1;
108} 108}
109 109
110/* len is the expected size of the result 110/* len is the expected size of the result
@@ -132,7 +132,7 @@ BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx)
132 132
133err: 133err:
134 BN_CTX_end(ctx); 134 BN_CTX_end(ctx);
135 return (ret); 135 return ret;
136} 136}
137 137
138int 138int
@@ -163,7 +163,7 @@ BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp,
163 return 0; 163 return 0;
164 } 164 }
165 BN_CTX_end(ctx); 165 BN_CTX_end(ctx);
166 return (1); 166 return 1;
167 } 167 }
168 168
169 /* We want the remainder 169 /* We want the remainder
@@ -226,7 +226,7 @@ BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, BN_RECP_CTX *recp,
226 226
227err: 227err:
228 BN_CTX_end(ctx); 228 BN_CTX_end(ctx);
229 return (ret); 229 return ret;
230} 230}
231 231
232 232
@@ -257,5 +257,5 @@ BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
257 257
258err: 258err:
259 BN_CTX_end(ctx); 259 BN_CTX_end(ctx);
260 return (ret); 260 return ret;
261} 261}