rename got_reflist_object_map_free to got_reflist_object_id_map_free
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
diff --git a/include/got_reference.h b/include/got_reference.h
index eeeea20..1c93ac4 100644
--- a/include/got_reference.h
+++ b/include/got_reference.h
@@ -146,7 +146,7 @@ struct got_reflist_object_id_map;
/*
* Create and populate an object ID map for a given list of references.
* Map entries will contain deep-copies of elements of the reflist.
- * The caller must dispose of the map with got_reflist_object_map_free().
+ * The caller must dispose of the map with got_reflist_object_id_map_free().
*/
const struct got_error *got_reflist_object_id_map_create(
struct got_reflist_object_id_map **, struct got_reflist_head *,
@@ -163,4 +163,4 @@ got_reflist_object_id_map_lookup(struct got_reflist_object_id_map *,
struct got_object_id *);
/* Free the specified object ID map. */
-void got_reflist_object_map_free(struct got_reflist_object_id_map *);
+void got_reflist_object_id_map_free(struct got_reflist_object_id_map *);
diff --git a/lib/reference.c b/lib/reference.c
index 6dba390..61bda5a 100644
--- a/lib/reference.c
+++ b/lib/reference.c
@@ -1459,7 +1459,7 @@ got_reflist_object_id_map_create(struct got_reflist_object_id_map **map,
done:
free(id);
if (err) {
- got_reflist_object_map_free(*map);
+ got_reflist_object_id_map_free(*map);
*map = NULL;
}
return NULL;
@@ -1487,7 +1487,7 @@ free_id_map_entry(struct got_object_id *id, void *data, void *arg)
}
void
-got_reflist_object_map_free(struct got_reflist_object_id_map *map)
+got_reflist_object_id_map_free(struct got_reflist_object_id_map *map)
{
got_object_idset_for_each(map->idset, free_id_map_entry, NULL);
got_object_idset_free(map->idset);
diff --git a/tog/tog.c b/tog/tog.c
index b467d0f..08cf77f 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -145,7 +145,7 @@ static void
tog_free_refs(void)
{
if (tog_refs_idmap) {
- got_reflist_object_map_free(tog_refs_idmap);
+ got_reflist_object_id_map_free(tog_refs_idmap);
tog_refs_idmap = NULL;
}
got_ref_list_free(&tog_refs);