From fc4f91a73970c7640496caafc30e931e40e50803 Mon Sep 17 00:00:00 2001 From: tb <> Date: Sun, 21 Apr 2019 16:25:40 +0000 Subject: KNF: use proper wrapping of function return type and name --- src/lib/libcrypto/x509v3/pcy_node.c | 5 +++-- src/lib/libcrypto/x509v3/v3_cpols.c | 7 +++---- src/lib/libcrypto/x509v3/v3_crld.c | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/lib/libcrypto/x509v3/pcy_node.c b/src/lib/libcrypto/x509v3/pcy_node.c index ba22b267bf..c966463606 100644 --- a/src/lib/libcrypto/x509v3/pcy_node.c +++ b/src/lib/libcrypto/x509v3/pcy_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcy_node.c,v 1.6 2015/07/18 00:01:05 beck Exp $ */ +/* $OpenBSD: pcy_node.c,v 1.7 2019/04/21 16:25:40 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -68,7 +68,8 @@ node_cmp(const X509_POLICY_NODE * const *a, const X509_POLICY_NODE * const *b) return OBJ_cmp((*a)->data->valid_policy, (*b)->data->valid_policy); } -STACK_OF(X509_POLICY_NODE) *policy_node_cmp_new(void) +STACK_OF(X509_POLICY_NODE) * +policy_node_cmp_new(void) { return sk_X509_POLICY_NODE_new(node_cmp); } diff --git a/src/lib/libcrypto/x509v3/v3_cpols.c b/src/lib/libcrypto/x509v3/v3_cpols.c index 34d3381d76..4359327b8b 100644 --- a/src/lib/libcrypto/x509v3/v3_cpols.c +++ b/src/lib/libcrypto/x509v3/v3_cpols.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_cpols.c,v 1.25 2017/01/29 17:49:23 beck Exp $ */ +/* $OpenBSD: v3_cpols.c,v 1.26 2019/04/21 16:25:40 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -398,9 +398,8 @@ NOTICEREF_free(NOTICEREF *a) ASN1_item_free((ASN1_VALUE *)a, &NOTICEREF_it); } -static -STACK_OF(POLICYINFO) *r2i_certpol(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, - char *value) +static STACK_OF(POLICYINFO) * +r2i_certpol(X509V3_EXT_METHOD *method, X509V3_CTX *ctx, char *value) { STACK_OF(POLICYINFO) *pols = NULL; char *pstr; diff --git a/src/lib/libcrypto/x509v3/v3_crld.c b/src/lib/libcrypto/x509v3/v3_crld.c index 8660c1ee4b..039435f1db 100644 --- a/src/lib/libcrypto/x509v3/v3_crld.c +++ b/src/lib/libcrypto/x509v3/v3_crld.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_crld.c,v 1.22 2017/05/02 04:11:08 deraadt Exp $ */ +/* $OpenBSD: v3_crld.c,v 1.23 2019/04/21 16:25:40 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -104,8 +104,8 @@ const X509V3_EXT_METHOD v3_freshest_crl = { .usr_data = NULL, }; -static -STACK_OF(GENERAL_NAME) *gnames_from_sectname(X509V3_CTX *ctx, char *sect) +static STACK_OF(GENERAL_NAME) * +gnames_from_sectname(X509V3_CTX *ctx, char *sect) { STACK_OF(CONF_VALUE) *gnsect; STACK_OF(GENERAL_NAME) *gens; -- cgit v1.2.3-55-g6feb