X-Git-Url: https://pd.if.org/git/?p=nbds;a=blobdiff_plain;f=test%2Fmap_test2.c;h=51b17b3f10cbf7f75eabdb8cbc7ea1260198f216;hp=897fe8e295d6619539be6335dbb77da09ecff03b;hb=9d72edf41ce3a2ddbbe2d44afc23ef5ec53339c3;hpb=d26bac75802a324ed98c8d3d88cfb9eb87b3b35a diff --git a/test/map_test2.c b/test/map_test2.c index 897fe8e..51b17b3 100644 --- a/test/map_test2.c +++ b/test/map_test2.c @@ -28,7 +28,7 @@ typedef struct worker_data { volatile int *wait; } worker_data_t; -static map_type_t map_type_; +static const map_impl_t *map_type_; // Test some basic stuff; add a few keys, remove a few keys void simple (CuTest* tc) { @@ -202,7 +202,7 @@ int main (void) { nbd_init(); lwt_set_trace_level("h3"); - map_type_t map_types[] = { MAP_TYPE_LIST, MAP_TYPE_SKIPLIST, MAP_TYPE_HASHTABLE }; + static const map_impl_t *map_types[] = { &ll_map_impl, &sl_map_impl, &ht_map_impl }; for (int i = 0; i < sizeof(map_types)/sizeof(*map_types); ++i) { map_type_ = map_types[i];