Commit f193b03845f89ae0e671e5f871fe635020cb7b48

Stefan Sperling 2020-12-26T22:39:55

rename got_reflist_object_map_free to got_reflist_object_id_map_free

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);