From 8ecb99749c242689b9ba63e3a5522a2d3ce42c46 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 23 Jun 2021 20:07:57 -0700 Subject: [PATCH] remove some unnecessary casts to agxbuf functions These functions take const char pointers. There is no need to cast away the const-ness of the original pointers. --- cmd/tools/gxl2gv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tools/gxl2gv.c b/cmd/tools/gxl2gv.c index ed5a3485a..f65e63fe7 100644 --- a/cmd/tools/gxl2gv.c +++ b/cmd/tools/gxl2gv.c @@ -525,7 +525,7 @@ startElementHandler(void *userData, const char *name, const char **atts) } else if (strcmp(name, "attr") == 0) { const char *attrname = atts[get_xml_attr("name", atts)]; - agxbput(&ud->xml_attr_name, (char *) attrname); + agxbput(&ud->xml_attr_name, attrname); pos = get_xml_attr("kind", atts); if (pos > 0) { @@ -662,11 +662,11 @@ static void characterDataHandler(void *userData, const char *s, int length) return; if (ud->compositeReadState) { - agxbput_n(&ud->composite_buffer, (char *) s, length); + agxbput_n(&ud->composite_buffer, s, length); return; } - agxbput_n(&ud->xml_attr_value, (char *) s, length); + agxbput_n(&ud->xml_attr_value, s, length); } Agraph_t *gxl_to_gv(FILE * gxlFile) -- 2.40.0