Home
last modified time | relevance | path

Searched refs:new_elt (Results 1 – 1 of 1) sorted by relevance

/illumos-gate/usr/src/lib/libnisdb/yptol/
H A Dmap_ctrl.c511 map_id_elt_t *new_elt; in insert_map_in_list() local
521 new_elt = (map_id_elt_t *)calloc(1, sizeof (map_id_elt_t)); in insert_map_in_list()
522 if (new_elt == NULL) { in insert_map_in_list()
525 new_elt->map_name = strdup(map_name); in insert_map_in_list()
526 if (new_elt->map_name == NULL) { /* strdup() failed */ in insert_map_in_list()
527 sfree(new_elt); in insert_map_in_list()
530 new_elt->map_id = unique_value; in insert_map_in_list()
533 new_elt->next = NULL; in insert_map_in_list()
535 new_elt->next = map_id_list[index]; in insert_map_in_list()
538 map_id_list[index] = new_elt; in insert_map_in_list()