--- a/test/map_tests.c Fri Oct 12 10:54:55 2012 +0200 +++ b/test/map_tests.c Fri Oct 12 12:08:34 2012 +0200 @@ -15,7 +15,7 @@ } UCX_TEST_IMPLEMENT(test_ucx_key) { - UcxKey key = ucx_key("This is a text.", 15); + UcxKey key = ucx_key((void*)"This is a text.", 15); UCX_TEST_BEGIN UCX_TEST_ASSERT(strncmp((const char*)key.data, "This is a text.", 15) == 0, "failed"); @@ -194,12 +194,12 @@ UCX_TEST_IMPLEMENT(test_ucx_map_store_load) { UcxMap *map = ucx_map_new(4); - ucx_map_cstr_put(map, "test", "test"); - ucx_map_cstr_put(map, "key", "value"); - ucx_map_cstr_put(map, "other.very.long.key", "value"); - ucx_map_cstr_put(map, "testkey", "testvalue"); - ucx_map_cstr_put(map, "simple", "not a key but an extremely long value " - "to test if the buffer extension works as designed"); + ucx_map_cstr_put(map, "test", (void*)"test"); + ucx_map_cstr_put(map, "key", (void*)"value"); + ucx_map_cstr_put(map, "other.very.long.key", (void*)"value"); + ucx_map_cstr_put(map, "testkey", (void*)"testvalue"); + ucx_map_cstr_put(map, "simple", (void*)"not a key but an extremely long " + "value to test if the buffer extension works as designed"); UCX_TEST_BEGIN FILE *f = tmpfile(); @@ -259,10 +259,10 @@ UCX_TEST_IMPLEMENT(test_ucx_map_store_load_with_mempool) { UcxMap *map = ucx_map_new(4); - ucx_map_cstr_put(map, "test", "test"); - ucx_map_cstr_put(map, "key", "value"); - ucx_map_cstr_put(map, "testkey", "testvalue"); - ucx_map_cstr_put(map, "simple", "a simple value"); + ucx_map_cstr_put(map, "test", (void*)"test"); + ucx_map_cstr_put(map, "key", (void*)"value"); + ucx_map_cstr_put(map, "testkey", (void*)"testvalue"); + ucx_map_cstr_put(map, "simple", (void*)"a simple value"); UCX_TEST_BEGIN FILE *f = tmpfile(); @@ -297,9 +297,9 @@ UCX_TEST_IMPLEMENT(test_ucx_map_clone) { UcxMap *map = ucx_map_new(4); - ucx_map_cstr_put(map, "key1", "value1"); - ucx_map_cstr_put(map, "key2", "value2"); - ucx_map_cstr_put(map, "key3", "value3"); + ucx_map_cstr_put(map, "key1", (void*)"value1"); + ucx_map_cstr_put(map, "key2", (void*)"value2"); + ucx_map_cstr_put(map, "key3", (void*)"value3"); UcxMap *clone = ucx_map_clone(map, NULL, NULL);