From: Matthew Fernandez Date: Mon, 21 Jun 2021 00:52:33 +0000 (-0700) Subject: remove unnecessary cast in gvusershape_open X-Git-Tag: 2.48.0~29^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=465cd6080ab1c4150a04164d667ddcef7d3642e2;p=graphviz remove unnecessary cast in gvusershape_open The result of find_user_shape, shape_desc*, implicitly coerces to void*. --- diff --git a/lib/gvc/gvusershape.c b/lib/gvc/gvusershape.c index 4476571d1..6051887c9 100644 --- a/lib/gvc/gvusershape.c +++ b/lib/gvc/gvusershape.c @@ -675,7 +675,7 @@ static usershape_t *gvusershape_open (const char *name) switch(imagetype(us)) { case FT_NULL: - if (!(us->data = (void*)find_user_shape(us->name))) { + if (!(us->data = find_user_shape(us->name))) { agerr(AGWARN, "\"%s\" was not found as a file or as a shape library member\n", us->name); freeUsershape (us); return NULL;