From d3ac08178a3af38a0a297989a450a0563d1bf210 Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 16 Dec 2020 13:44:17 +0000 Subject: Fix some KNF issues --- src/lib/libcrypto/x509/x509_vpm.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/lib/libcrypto/x509/x509_vpm.c b/src/lib/libcrypto/x509/x509_vpm.c index 448ee20984..9fb94b2772 100644 --- a/src/lib/libcrypto/x509/x509_vpm.c +++ b/src/lib/libcrypto/x509/x509_vpm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_vpm.c,v 1.22 2020/09/14 08:10:04 beck Exp $ */ +/* $OpenBSD: x509_vpm.c,v 1.23 2020/12/16 13:44:17 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -207,7 +207,7 @@ X509_VERIFY_PARAM_new(void) param = calloc(1, sizeof(X509_VERIFY_PARAM)); if (param == NULL) return NULL; - paramid = calloc (1, sizeof(X509_VERIFY_PARAM_ID)); + paramid = calloc(1, sizeof(X509_VERIFY_PARAM_ID)); if (paramid == NULL) { free(param); return NULL; @@ -227,7 +227,8 @@ X509_VERIFY_PARAM_free(X509_VERIFY_PARAM *param) free(param); } -/* This function determines how parameters are "inherited" from one structure +/* + * This function determines how parameters are "inherited" from one structure * to another. There are several different ways this can happen. * * 1. If a child structure needs to have its values initialized from a parent @@ -673,8 +674,8 @@ X509_VERIFY_PARAM_get_count(void) return num; } -const -X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) +const X509_VERIFY_PARAM * +X509_VERIFY_PARAM_get0(int id) { int num = sizeof(default_table) / sizeof(X509_VERIFY_PARAM); if (id < num) @@ -682,8 +683,8 @@ X509_VERIFY_PARAM *X509_VERIFY_PARAM_get0(int id) return sk_X509_VERIFY_PARAM_value(param_table, id - num); } -const -X509_VERIFY_PARAM *X509_VERIFY_PARAM_lookup(const char *name) +const X509_VERIFY_PARAM * +X509_VERIFY_PARAM_lookup(const char *name) { X509_VERIFY_PARAM pm; unsigned int i, limit; -- cgit v1.2.3-55-g6feb