X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Ftools.c;h=2f3f06a121a8550d9633e6250c466221f15e1a8d;hb=6e0e50d52f6c2cd5f1686de23375f46847605ee7;hp=0b0b7e2ee1e2b5938dfb2e9bb4e7854087019e19;hpb=fd72fbf3b83fc7215347e131aa6fc3c87ad7b4d5;p=rocksndiamonds.git diff --git a/src/tools.c b/src/tools.c index 0b0b7e2e..2f3f06a1 100644 --- a/src/tools.c +++ b/src/tools.c @@ -11316,10 +11316,10 @@ static unsigned int test_uuid_random_function_better(int max) static void TestGeneratingUUIDs_RunTest(int nr, int always_seed, int num_uuids) { - struct hashtable *hash_seeds = - create_hashtable(16, 0.75, get_hash_from_string, hash_key_strings_are_equal); - struct hashtable *hash_uuids = - create_hashtable(16, 0.75, get_hash_from_string, hash_key_strings_are_equal); + HashTable *hash_seeds = + create_hashtable(get_hash_from_string, hash_key_strings_are_equal, free, NULL); + HashTable *hash_uuids = + create_hashtable(get_hash_from_string, hash_key_strings_are_equal, free, NULL); static char message[100]; int i; @@ -11398,8 +11398,8 @@ static void TestGeneratingUUIDs_RunTest(int nr, int always_seed, int num_uuids) Request(message, REQ_CONFIRM); - hashtable_destroy(hash_seeds, 0); - hashtable_destroy(hash_uuids, 0); + hashtable_destroy(hash_seeds); + hashtable_destroy(hash_uuids); } void TestGeneratingUUIDs(void)