diff options
author | tb <> | 2021-12-26 15:20:21 +0000 |
---|---|---|
committer | tb <> | 2021-12-26 15:20:21 +0000 |
commit | 34f2fc8a9f44ca9b392595e0527d221ceb6e7b8f (patch) | |
tree | bdea6616e54db3c311d4df7b5ca987f22c3412cd | |
parent | c8d92e7494cde45554fdc18c66728a2adbe1bb71 (diff) | |
download | openbsd-34f2fc8a9f44ca9b392595e0527d221ceb6e7b8f.tar.gz openbsd-34f2fc8a9f44ca9b392595e0527d221ceb6e7b8f.tar.bz2 openbsd-34f2fc8a9f44ca9b392595e0527d221ceb6e7b8f.zip |
Drop pointless cast in i2d_ASN1_BOOLEAN(). This may or may not fix
a weird coverity warning.
CID 345121
ok jsing
-rw-r--r-- | src/lib/libcrypto/asn1/tasn_typ.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/tasn_typ.c b/src/lib/libcrypto/asn1/tasn_typ.c index d35913b46e..c373f34915 100644 --- a/src/lib/libcrypto/asn1/tasn_typ.c +++ b/src/lib/libcrypto/asn1/tasn_typ.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tasn_typ.c,v 1.16 2021/12/25 08:52:44 jsing Exp $ */ | 1 | /* $OpenBSD: tasn_typ.c,v 1.17 2021/12/26 15:20:21 tb Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -555,7 +555,7 @@ const ASN1_ITEM ASN1_BOOLEAN_it = { | |||
555 | int | 555 | int |
556 | i2d_ASN1_BOOLEAN(int a, unsigned char **out) | 556 | i2d_ASN1_BOOLEAN(int a, unsigned char **out) |
557 | { | 557 | { |
558 | return ASN1_item_ex_i2d((ASN1_VALUE **)(long *)(&a), out, | 558 | return ASN1_item_ex_i2d((ASN1_VALUE **)&a, out, |
559 | &ASN1_BOOLEAN_it, -1, 0); | 559 | &ASN1_BOOLEAN_it, -1, 0); |
560 | } | 560 | } |
561 | 561 | ||