diff options
| author | erdgeist <> | 2009-01-02 07:52:17 +0000 |
|---|---|---|
| committer | erdgeist <> | 2009-01-02 07:52:17 +0000 |
| commit | 20257202af90ee247b8cf744ab39cf2a17bd1e75 (patch) | |
| tree | 0481f1a2b122254102d8ed115102ae3292eb9132 | |
| parent | 38c073e6dd35b4b3cae51189204171fbff0d2a40 (diff) | |
Fix incorrect prototype for accesslist_deinit
| -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 ); |
