From: Matthew Fernandez Date: Sat, 22 Oct 2022 21:27:20 +0000 (-0700) Subject: cgraph agrelabel_node: remove unnecessary cast X-Git-Tag: 7.0.1~14^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2aa046945954e17a50708894aa551c0c82a16b16;p=graphviz cgraph agrelabel_node: remove unnecessary cast --- diff --git a/lib/cgraph/node.c b/lib/cgraph/node.c index 91be4d1dc..fe7692f17 100644 --- a/lib/cgraph/node.c +++ b/lib/cgraph/node.c @@ -242,8 +242,7 @@ int agrelabel_node(Agnode_t * n, char *newname) if (agmapnametoid(g, AGNODE, newname, &new_id, TRUE)) { if (agfindnode_by_id(agroot(g), new_id) == NULL) { agfreeid(g, AGNODE, AGID(n)); - agapply(g, (Agobj_t *) n, (agobjfn_t) dict_relabel, - (void *) &new_id, FALSE); + agapply(g, (Agobj_t*)n, (agobjfn_t)dict_relabel, &new_id, FALSE); return SUCCESS; } else { agfreeid(g, AGNODE, new_id); /* couldn't use it after all */