summaryrefslogtreecommitdiff
path: root/ot_accesslist.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_accesslist.c')
-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 );