From: tb Date: Sat, 30 Dec 2023 18:06:59 +0000 (+0000) Subject: Some BoringSSL devs spent too much time with C++ X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e79f4293759c369c6d64bbc8b235860b6f862ac2;p=openbsd Some BoringSSL devs spent too much time with C++ --- diff --git a/lib/libcrypto/x509/x509_issuer_cache.c b/lib/libcrypto/x509/x509_issuer_cache.c index f7fbd54ca77..87220459b36 100644 --- a/lib/libcrypto/x509/x509_issuer_cache.c +++ b/lib/libcrypto/x509/x509_issuer_cache.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_issuer_cache.c,v 1.4 2022/12/26 07:18:53 jmc Exp $ */ +/* $OpenBSD: x509_issuer_cache.c,v 1.5 2023/12/30 18:06:59 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -98,7 +98,7 @@ x509_issuer_cache_free_oldest() * Free the entire issuer cache, discarding all entries. */ void -x509_issuer_cache_free() +x509_issuer_cache_free(void) { if (pthread_mutex_lock(&x509_issuer_tree_mutex) != 0) return; diff --git a/lib/libcrypto/x509/x509_issuer_cache.h b/lib/libcrypto/x509/x509_issuer_cache.h index 3afe65bd492..00b18be0de9 100644 --- a/lib/libcrypto/x509/x509_issuer_cache.h +++ b/lib/libcrypto/x509/x509_issuer_cache.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_issuer_cache.h,v 1.2 2022/09/03 17:47:47 jsing Exp $ */ +/* $OpenBSD: x509_issuer_cache.h,v 1.3 2023/12/30 18:06:59 tb Exp $ */ /* * Copyright (c) 2020 Bob Beck * @@ -41,7 +41,7 @@ int x509_issuer_cache_set_max(size_t max); int x509_issuer_cache_find(unsigned char *parent_md, unsigned char *child_md); void x509_issuer_cache_add(unsigned char *parent_md, unsigned char *child_md, int valid); -void x509_issuer_cache_free(); +void x509_issuer_cache_free(void); __END_HIDDEN_DECLS