]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast in gvusershape_open
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 21 Jun 2021 00:52:33 +0000 (17:52 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 18:57:13 +0000 (11:57 -0700)
The result of find_user_shape, shape_desc*, implicitly coerces to void*.

lib/gvc/gvusershape.c

index 4476571d1060110535b3783a751a6756d00800ed..6051887c9e465e2ce21da0efe6213904be93ee14 100644 (file)
@@ -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;