ucx/map.c

changeset 116
234920008754
parent 112
6384016df2a3
child 136
b798f2eed26a
equal deleted inserted replaced
115:965fd17ed9cf 116:234920008754
62 map->count = 0; 62 map->count = 0;
63 63
64 return map; 64 return map;
65 } 65 }
66 66
67 void ucx_map_free_elmlist(UcxMap *map) { 67 static void ucx_map_free_elmlist(UcxMap *map) {
68 for (size_t n = 0 ; n < map->size ; n++) { 68 for (size_t n = 0 ; n < map->size ; n++) {
69 UcxMapElement *elem = map->map[n]; 69 UcxMapElement *elem = map->map[n];
70 if (elem != NULL) { 70 if (elem != NULL) {
71 do { 71 do {
72 UcxMapElement *next = elem->next; 72 UcxMapElement *next = elem->next;

mercurial