]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
APPS: remove duplicate definition of `trace_data_stack`
authorMatthias St. Pierre <matthias.st.pierre@ncp-e.com>
Fri, 15 Sep 2023 13:32:25 +0000 (15:32 +0200)
committerPauli <pauli@openssl.org>
Sun, 17 Sep 2023 23:06:47 +0000 (09:06 +1000)
Note: It seems like the C compiler doesn't care about the duplicate.
(The first definition is eight lines above.) The C++ compiler however
didn't like it when I reused the tracing code snippets elsewhere.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/22117)

apps/openssl.c

index dd41ac3a84e443a7a4341509249ab043ddabaedc..adf77096c7f31cda452ac11c05a5d0f6d47b5016 100644 (file)
@@ -157,8 +157,6 @@ static void tracedata_free(tracedata *data)
     OPENSSL_free(data);
 }
 
-static STACK_OF(tracedata) *trace_data_stack;
-
 static void cleanup_trace(void)
 {
     sk_tracedata_pop_free(trace_data_stack, tracedata_free);