From: Jilles Tjoelker Date: Mon, 1 Mar 2010 00:24:00 +0000 (+0100) Subject: Make struct operhash_entry private. X-Git-Tag: shadowircd-6.1.0~34^2~26 X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/commitdiff_plain/cf06f92b783219f7fa39ba9b145de2e5d69a9747?ds=sidebyside;hp=a0f4c418d39ab72d88e1430500082b7d6bb68073 Make struct operhash_entry private. --- diff --git a/include/operhash.h b/include/operhash.h index 643abf9..c999b72 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 5e416d0..ed6cda1 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 *