summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2026-01-04 09:54:23 +0000
committertb <>2026-01-04 09:54:23 +0000
commit98b725232ef3d7792add084ade8884054ebc5094 (patch)
treed8ffded9c72b6e198677875b5bd295194cabc479
parentf65bd896414ed2e25bad00527fa4f1c5fabdad09 (diff)
downloadopenbsd-98b725232ef3d7792add084ade8884054ebc5094.tar.gz
openbsd-98b725232ef3d7792add084ade8884054ebc5094.tar.bz2
openbsd-98b725232ef3d7792add084ade8884054ebc5094.zip
a_bitstr: remove parentheses in return statements
no binary change
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index 9eee97e33d..e656c43f0c 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_bitstr.c,v 1.47 2026/01/04 09:51:42 tb Exp $ */ 1/* $OpenBSD: a_bitstr.c,v 1.48 2026/01/04 09:54:23 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 *
@@ -182,7 +182,7 @@ i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
182 unsigned char *p, *d; 182 unsigned char *p, *d;
183 183
184 if (a == NULL) 184 if (a == NULL)
185 return (0); 185 return 0;
186 186
187 len = a->length; 187 len = a->length;
188 if (len > 0) { 188 if (len > 0) {
@@ -219,12 +219,12 @@ i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
219 bits = 0; 219 bits = 0;
220 220
221 if (len > INT_MAX - 1) 221 if (len > INT_MAX - 1)
222 return (0); 222 return 0;
223 223
224 ret = len + 1; 224 ret = len + 1;
225 225
226 if (pp == NULL) 226 if (pp == NULL)
227 return (ret); 227 return ret;
228 228
229 p = *pp; 229 p = *pp;
230 230
@@ -236,7 +236,7 @@ i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
236 p[-1] &= 0xff << bits; 236 p[-1] &= 0xff << bits;
237 } 237 }
238 *pp = p; 238 *pp = p;
239 return (ret); 239 return ret;
240} 240}
241 241
242int 242int