From 4a1f3f274108e25b97bd9870170fe2970892e155 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 6 Jan 2016 02:54:18 +0000 Subject: Only declare stacks in headers Don't define stacks in C source files: it causes warnings about unused functions in some compilers. Reviewed-by: Richard Levitte --- crypto/ex_data.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'crypto/ex_data.c') diff --git a/crypto/ex_data.c b/crypto/ex_data.c index 76e4b3b6a2..fcdc83f9d1 100644 --- a/crypto/ex_data.c +++ b/crypto/ex_data.c @@ -111,21 +111,17 @@ #include "internal/cryptlib.h" #include - - /* * Each structure type (sometimes called a class), that supports * exdata has a stack of callbacks for each instance. */ -typedef struct ex_callback_st { +struct ex_callback_st { long argl; /* Arbitary long */ void *argp; /* Arbitary void * */ CRYPTO_EX_new *new_func; CRYPTO_EX_free *free_func; CRYPTO_EX_dup *dup_func; -} EX_CALLBACK; - -DEFINE_STACK_OF(EX_CALLBACK) +}; /* * The state for each class. This could just be a typedef, but -- cgit v1.2.3