From b1145d58d98e75cc12d7e8cf5f4bd75d43f73c09 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 5 Feb 2022 12:34:19 +1100 Subject: [PATCH] gxl2gv: [nfc] remove the need to cast 'mapLookup' parameter The equivalent of the prior commit on gxl2gv. --- cmd/tools/gxl2gv.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/tools/gxl2gv.c b/cmd/tools/gxl2gv.c index bd90dcbcc..8d4364afa 100644 --- a/cmd/tools/gxl2gv.c +++ b/cmd/tools/gxl2gv.c @@ -193,8 +193,7 @@ static void addToMap(Dt_t * map, char *name, char *uniqueName) objp->unique_name = strdup(uniqueName); } -static char *mapLookup(Dt_t * nm, char *name) -{ +static char *mapLookup(Dt_t *nm, const char *name) { namev_t *objp = dtmatch(nm, name); if (objp) return objp->unique_name; @@ -504,11 +503,11 @@ startElementHandler(void *userData, const char *name, const char **atts) if (pos > 0) head = atts[pos]; - tname = mapLookup(ud->nameMap, (char *) tail); + tname = mapLookup(ud->nameMap, tail); if (tname) tail = tname; - tname = mapLookup(ud->nameMap, (char *) head); + tname = mapLookup(ud->nameMap, head); if (tname) head = tname; -- 2.40.0