From 2332e31a8980f2e81482ee753a5401f6b6be9e1c Mon Sep 17 00:00:00 2001 From: job <> Date: Wed, 26 Apr 2023 11:04:12 +0000 Subject: Remove unneeded parentheses --- src/regress/lib/libcrypto/x509/x509_asn1.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/x509/x509_asn1.c b/src/regress/lib/libcrypto/x509/x509_asn1.c index 5dead2ac00..c1d33b121f 100644 --- a/src/regress/lib/libcrypto/x509/x509_asn1.c +++ b/src/regress/lib/libcrypto/x509/x509_asn1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_asn1.c,v 1.4 2023/04/26 11:00:49 job Exp $ */ +/* $OpenBSD: x509_asn1.c,v 1.5 2023/04/26 11:04:12 job Exp $ */ /* * Copyright (c) 2023 Job Snijders * @@ -60,7 +60,7 @@ x509_set_integer(int (*f)(X509 *x, ASN1_INTEGER *ai), X509 **x, int i) err(1, NULL); if (!ASN1_INTEGER_set(ai, i)) errx(1, "ASN1_INTEGER_set"); - if (!(*f)(*x, ai)) + if (!f(*x, ai)) err(1, NULL); ASN1_INTEGER_free(ai); @@ -76,7 +76,7 @@ x509_set_name(int (*f)(X509 *x, X509_NAME *name), X509 **x, err(1, NULL); if (!X509_NAME_add_entry_by_txt(xn, "C", MBSTRING_ASC, n, -1, -1, 0)) errx(1, "X509_NAME_add_entry_by_txt"); - if (!(*f)(*x, xn)) + if (!f(*x, xn)) err(1, NULL); X509_NAME_free(xn); @@ -91,7 +91,7 @@ x509_set_time(int (*f)(X509 *x, const ASN1_TIME *tm), X509 **x, int t) err(1, NULL); if ((at = X509_gmtime_adj(NULL, t)) == NULL) errx(1, "X509_gmtime_adj"); - if (!(*f)(*x, at)) + if (!f(*x, at)) err(1, NULL); ASN1_TIME_free(at); -- cgit v1.2.3-55-g6feb