Files
oasis-linux-mirror/pkg/libressl/patch/0002-Remove-unneeded-at-top-level.patch

43 lines
1.4 KiB
Diff

From fee3065756fb041241389e49991454ec62cc3d47 Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Fri, 30 Apr 2021 18:14:07 -0700
Subject: [PATCH] Remove unneeded ';' at top level
This is not allowed in the ISO C grammar.
---
crypto/x509/x509_issuer_cache.c | 4 ++--
crypto/x509/x509_lib.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/crypto/x509/x509_issuer_cache.c b/crypto/x509/x509_issuer_cache.c
index 070e85b..12afd6d 100644
--- a/crypto/x509/x509_issuer_cache.c
+++ b/crypto/x509/x509_issuer_cache.c
@@ -53,8 +53,8 @@ static TAILQ_HEAD(lruqueue, x509_issuer) x509_issuer_lru =
TAILQ_HEAD_INITIALIZER(x509_issuer_lru);
static pthread_mutex_t x509_issuer_tree_mutex = PTHREAD_MUTEX_INITIALIZER;
-RB_PROTOTYPE(x509_issuer_tree, x509_issuer, entry, x509_issuer_cmp);
-RB_GENERATE(x509_issuer_tree, x509_issuer, entry, x509_issuer_cmp);
+RB_PROTOTYPE(x509_issuer_tree, x509_issuer, entry, x509_issuer_cmp)
+RB_GENERATE(x509_issuer_tree, x509_issuer, entry, x509_issuer_cmp)
/*
* Set the maximum number of cached entries. On additions to the cache
diff --git a/crypto/x509/x509_lib.c b/crypto/x509/x509_lib.c
index 0285ac0..d5f07e0 100644
--- a/crypto/x509/x509_lib.c
+++ b/crypto/x509/x509_lib.c
@@ -162,7 +162,7 @@ X509V3_EXT_get_nid(int nid)
default:
return NULL;
}
-};
+}
LCRYPTO_ALIAS(X509V3_EXT_get_nid);
const X509V3_EXT_METHOD *
--
2.49.0