Skip to content

Commit 8f2bc8a

Browse files
committed
xml/import: remove "v2" from some function names
We don't import from v1 anymore. Signed-off-by: Brice Goglin <[email protected]>
1 parent abfd613 commit 8f2bc8a

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

hwloc/topology-xml.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -946,8 +946,8 @@ hwloc__xml_import_object(hwloc_topology_t topology,
946946
}
947947

948948
static int
949-
hwloc__xml_v2import_support(hwloc_topology_t topology,
950-
hwloc__xml_import_state_t state)
949+
hwloc__xml_import_support(hwloc_topology_t topology,
950+
hwloc__xml_import_state_t state)
951951
{
952952
char *name = NULL;
953953
int value = 1; /* value is optional */
@@ -1020,9 +1020,9 @@ hwloc__xml_v2import_support(hwloc_topology_t topology,
10201020
}
10211021

10221022
static int
1023-
hwloc__xml_v2import_distances(hwloc_topology_t topology,
1024-
hwloc__xml_import_state_t state,
1025-
int heterotypes)
1023+
hwloc__xml_import_distances(hwloc_topology_t topology,
1024+
hwloc__xml_import_state_t state,
1025+
int heterotypes)
10261026
{
10271027
hwloc_obj_type_t unique_type = HWLOC_OBJ_TYPE_NONE;
10281028
hwloc_obj_type_t *different_types = NULL;
@@ -1776,15 +1776,15 @@ hwloc_look_xml(struct hwloc_backend *backend, struct hwloc_disc_status *dstatus)
17761776
if (!ret)
17771777
break;
17781778
if (!strcmp(tag, "distances2")) {
1779-
ret = hwloc__xml_v2import_distances(topology, &childstate, 0);
1779+
ret = hwloc__xml_import_distances(topology, &childstate, 0);
17801780
if (ret < 0)
17811781
goto failed;
17821782
} else if (!strcmp(tag, "distances2hetero")) {
1783-
ret = hwloc__xml_v2import_distances(topology, &childstate, 1);
1783+
ret = hwloc__xml_import_distances(topology, &childstate, 1);
17841784
if (ret < 0)
17851785
goto failed;
17861786
} else if (!strcmp(tag, "support")) {
1787-
ret = hwloc__xml_v2import_support(topology, &childstate);
1787+
ret = hwloc__xml_import_support(topology, &childstate);
17881788
if (ret < 0)
17891789
goto failed;
17901790
} else if (!strcmp(tag, "memattr")) {

0 commit comments

Comments
 (0)