From: Matthew Fernandez Date: Fri, 26 Nov 2021 18:04:31 +0000 (-0800) Subject: myiddisc_open: remove unnecessary casts of 'gctx' X-Git-Tag: 2.50.0~6^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=354db28088c00dc22dd86beee17f569265a25376;p=graphviz myiddisc_open: remove unnecessary casts of 'gctx' --- diff --git a/tclpkg/tcldot/tcldot-id.c b/tclpkg/tcldot/tcldot-id.c index 85f783fcc..a7daf03a2 100644 --- a/tclpkg/tcldot/tcldot-id.c +++ b/tclpkg/tcldot/tcldot-id.c @@ -19,7 +19,7 @@ static void *myiddisc_open(Agraph_t *g, Agdisc_t *disc) { gctx = malloc(sizeof(gctx_t)); gctx->g = g; gctx->ictx = ictx; - return (void *)gctx; + return gctx; } static long myiddisc_map(void *state, int objtype, char *str, uint64_t *id, int createflag) { (void)objtype;