From f54cfb46adcd3c3a7d3240db7290595677cfb01c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 5 Nov 2022 09:19:31 -0700 Subject: [PATCH] prune: remove unnecessary casts --- contrib/prune/prune.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/prune/prune.c b/contrib/prune/prune.c index 20afe4504..f33922c02 100644 --- a/contrib/prune/prune.c +++ b/contrib/prune/prune.c @@ -140,7 +140,7 @@ int main(int argc, char **argv) fprintf(stderr, "Pruning node %s\n", (char*)node_list.data[i]); /* check whether a node of that name exists at all */ - node = agnode(graph, (char*)node_list.data[i], 0); + node = agnode(graph, node_list.data[i], 0); if (node == NULL) { fprintf(stderr, "*** Warning: No such node: %s -- gracefully skipping this one\n", @@ -253,12 +253,12 @@ static void addattr(generic_list_t * l, char *a) { /* pointer to argument value */ sp->v = gv_strdup(p); - add_to_generic_list(l, (gl_data) sp); + add_to_generic_list(l, sp); } /* add element to node list */ static void addnode(generic_list_t *l, char *n) { char *sp = gv_strdup(n); - add_to_generic_list(l, (gl_data) sp); + add_to_generic_list(l, sp); } -- 2.40.0