summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <>2009-01-02 07:52:17 +0000
committererdgeist <>2009-01-02 07:52:17 +0000
commit20257202af90ee247b8cf744ab39cf2a17bd1e75 (patch)
tree0481f1a2b122254102d8ed115102ae3292eb9132
parent38c073e6dd35b4b3cae51189204171fbff0d2a40 (diff)
Fix incorrect prototype for accesslist_deinit
-rw-r--r--ot_accesslist.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ot_accesslist.c b/ot_accesslist.c
index 3b8e8a9..0cb6fe7 100644
--- a/ot_accesslist.c
+++ b/ot_accesslist.c
@@ -23,15 +23,15 @@
23char *g_accesslist_filename = NULL; 23char *g_accesslist_filename = NULL;
24static ot_vector accesslist; 24static ot_vector accesslist;
25 25
26static void access_list_deinit( void ) {
27 accesslist_reset( );
28}
29
30static void accesslist_reset( void ) { 26static void accesslist_reset( void ) {
31 free( accesslist.data ); 27 free( accesslist.data );
32 byte_zero( &accesslist, sizeof( accesslist ) ); 28 byte_zero( &accesslist, sizeof( accesslist ) );
33} 29}
34 30
31void accesslist_deinit( void ) {
32 accesslist_reset( );
33}
34
35static int accesslist_addentry( ot_hash *infohash ) { 35static int accesslist_addentry( ot_hash *infohash ) {
36 int eger; 36 int eger;
37 void *insert = vector_find_or_insert( &accesslist, infohash, OT_HASH_COMPARE_SIZE, OT_HASH_COMPARE_SIZE, &eger ); 37 void *insert = vector_find_or_insert( &accesslist, infohash, OT_HASH_COMPARE_SIZE, OT_HASH_COMPARE_SIZE, &eger );