diff options
| -rw-r--r-- | ot_accesslist.c | 8 |
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 @@ | |||
| 23 | char *g_accesslist_filename = NULL; | 23 | char *g_accesslist_filename = NULL; |
| 24 | static ot_vector accesslist; | 24 | static ot_vector accesslist; |
| 25 | 25 | ||
| 26 | static void access_list_deinit( void ) { | ||
| 27 | accesslist_reset( ); | ||
| 28 | } | ||
| 29 | |||
| 30 | static void accesslist_reset( void ) { | 26 | static 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 | ||
| 31 | void accesslist_deinit( void ) { | ||
| 32 | accesslist_reset( ); | ||
| 33 | } | ||
| 34 | |||
| 35 | static int accesslist_addentry( ot_hash *infohash ) { | 35 | static 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 ); |
