From f9545a9b54e18bd8406d835e6a2bf8639a321a0d Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Mon, 1 Mar 2010 01:24:00 +0100 Subject: [PATCH] Make struct operhash_entry private. --- include/operhash.h | 6 ------ src/operhash.c | 6 ++++++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/operhash.h b/include/operhash.h index 643abf9d..c999b720 100644 --- a/include/operhash.h +++ b/include/operhash.h @@ -1,12 +1,6 @@ #ifndef INCLUDED_operhash_h #define INCLUDED_operhash_h -struct operhash_entry -{ - char *name; - int refcount; -}; - void init_operhash(void); const char *operhash_add(const char *name); const char *operhash_find(const char *name); diff --git a/src/operhash.c b/src/operhash.c index 5e416d0d..ed6cda1e 100644 --- a/src/operhash.c +++ b/src/operhash.c @@ -41,6 +41,12 @@ #define hash_opername(x) fnv_hash_upper((const unsigned char *)(x), OPERHASH_MAX_BITS) +struct operhash_entry +{ + char *name; + int refcount; +}; + static rb_dlink_list operhash_table[OPERHASH_MAX]; const char *