mirror of
git://erdgeist.org/opentracker
synced 2025-02-17 06:31:30 +08:00
Fix incorrect prototype for accesslist_deinit
This commit is contained in:
parent
38c073e6dd
commit
20257202af
@ -23,15 +23,15 @@
|
|||||||
char *g_accesslist_filename = NULL;
|
char *g_accesslist_filename = NULL;
|
||||||
static ot_vector accesslist;
|
static ot_vector accesslist;
|
||||||
|
|
||||||
static void access_list_deinit( void ) {
|
|
||||||
accesslist_reset( );
|
|
||||||
}
|
|
||||||
|
|
||||||
static void accesslist_reset( void ) {
|
static void accesslist_reset( void ) {
|
||||||
free( accesslist.data );
|
free( accesslist.data );
|
||||||
byte_zero( &accesslist, sizeof( accesslist ) );
|
byte_zero( &accesslist, sizeof( accesslist ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void accesslist_deinit( void ) {
|
||||||
|
accesslist_reset( );
|
||||||
|
}
|
||||||
|
|
||||||
static int accesslist_addentry( ot_hash *infohash ) {
|
static int accesslist_addentry( ot_hash *infohash ) {
|
||||||
int eger;
|
int eger;
|
||||||
void *insert = vector_find_or_insert( &accesslist, infohash, OT_HASH_COMPARE_SIZE, OT_HASH_COMPARE_SIZE, &eger );
|
void *insert = vector_find_or_insert( &accesslist, infohash, OT_HASH_COMPARE_SIZE, OT_HASH_COMPARE_SIZE, &eger );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user