summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_bitstr.c
diff options
context:
space:
mode:
authorjsing <>2014-04-18 07:09:23 +0000
committerjsing <>2014-04-18 07:09:23 +0000
commit47f3f755de44fe72026c26b61f3534245e51ce63 (patch)
tree530ccfa4465ec1e141f16ac55eccd5e456d9dadf /src/lib/libcrypto/asn1/a_bitstr.c
parentf843014abcc7498613638ca7bdc47b3123ea2544 (diff)
downloadopenbsd-47f3f755de44fe72026c26b61f3534245e51ce63.tar.gz
openbsd-47f3f755de44fe72026c26b61f3534245e51ce63.tar.bz2
openbsd-47f3f755de44fe72026c26b61f3534245e51ce63.zip
More KNF.
Diffstat (limited to 'src/lib/libcrypto/asn1/a_bitstr.c')
-rw-r--r--src/lib/libcrypto/asn1/a_bitstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_bitstr.c b/src/lib/libcrypto/asn1/a_bitstr.c
index 5633cfca1c..c578ce6279 100644
--- a/src/lib/libcrypto/asn1/a_bitstr.c
+++ b/src/lib/libcrypto/asn1/a_bitstr.c
@@ -69,7 +69,7 @@ ASN1_BIT_STRING_set(ASN1_BIT_STRING *x, unsigned char *d, int len)
69int 69int
70i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp) 70i2c_ASN1_BIT_STRING(ASN1_BIT_STRING *a, unsigned char **pp)
71{ 71{
72 int ret, j,bits, len; 72 int ret, j, bits, len;
73 unsigned char *p, *d; 73 unsigned char *p, *d;
74 74
75 if (a == NULL) 75 if (a == NULL)
@@ -198,7 +198,7 @@ ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *a, int n, int value)
198 if (a == NULL) 198 if (a == NULL)
199 return 0; 199 return 0;
200 200
201 a->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); /* clear, set on write */ 201 a->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT | 0x07); /* clear, set on write */
202 202
203 if ((a->length < (w + 1)) || (a->data == NULL)) { 203 if ((a->length < (w + 1)) || (a->data == NULL)) {
204 if (!value) 204 if (!value)