Some BoringSSL devs spent too much time with C++
authortb <tb@openbsd.org>
Sat, 30 Dec 2023 18:06:59 +0000 (18:06 +0000)
committertb <tb@openbsd.org>
Sat, 30 Dec 2023 18:06:59 +0000 (18:06 +0000)
lib/libcrypto/x509/x509_issuer_cache.c
lib/libcrypto/x509/x509_issuer_cache.h

index f7fbd54..8722045 100644 (file)
@@ -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 <beck@openbsd.org>
  *
@@ -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;
index 3afe65b..00b18be 100644 (file)
@@ -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 <beck@openbsd.org>
  *
@@ -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