aboutsummaryrefslogtreecommitdiff
path: root/crypto/objects/o_names.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-06 02:54:18 +0000
committerDr. Stephen Henson <steve@openssl.org>2016-01-07 18:00:51 +0000
commit4a1f3f274108e25b97bd9870170fe2970892e155 (patch)
tree45e10bfbd19cec70d44d079d677b9852f12a501e /crypto/objects/o_names.c
parent858857157290dd35145b14044ae96be9cd8eb0df (diff)
downloadopenssl-4a1f3f274108e25b97bd9870170fe2970892e155.zip
openssl-4a1f3f274108e25b97bd9870170fe2970892e155.tar.gz
openssl-4a1f3f274108e25b97bd9870170fe2970892e155.tar.bz2
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 <levitte@openssl.org>
Diffstat (limited to 'crypto/objects/o_names.c')
-rw-r--r--crypto/objects/o_names.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/objects/o_names.c b/crypto/objects/o_names.c
index 0839fee..aa9b400 100644
--- a/crypto/objects/o_names.c
+++ b/crypto/objects/o_names.c
@@ -7,6 +7,7 @@
#include <openssl/objects.h>
#include <openssl/safestack.h>
#include <openssl/e_os2.h>
+#include "o_names.h"
/*
* Later versions of DEC C has started to add lnkage information to certain
@@ -28,13 +29,11 @@ DECLARE_LHASH_OF(OBJ_NAME);
static LHASH_OF(OBJ_NAME) *names_lh = NULL;
static int names_type_num = OBJ_NAME_TYPE_NUM;
-typedef struct name_funcs_st {
+struct name_funcs_st {
unsigned long (*hash_func) (const char *name);
int (*cmp_func) (const char *a, const char *b);
void (*free_func) (const char *, int, const char *);
-} NAME_FUNCS;
-
-DEFINE_STACK_OF(NAME_FUNCS)
+};
static STACK_OF(NAME_FUNCS) *name_funcs_stack;