From: Matthew Fernandez Date: Fri, 8 Jul 2022 00:24:05 +0000 (-0700) Subject: cgraph agsubnodeseqcmpf: remove unnecessary casts X-Git-Tag: 5.0.1~32^2~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=89148555153b650b699d270dad02e8fad8e304c9;p=graphviz cgraph agsubnodeseqcmpf: remove unnecessary casts --- diff --git a/lib/cgraph/node.c b/lib/cgraph/node.c index 4cb7fed8e..91be4d1dc 100644 --- a/lib/cgraph/node.c +++ b/lib/cgraph/node.c @@ -291,10 +291,9 @@ static int agsubnodeseqcmpf(Dict_t * d, void *arg0, void *arg1, Dtdisc_t * disc) { (void)d; /* unused */ (void)disc; /* unused */ - Agsubnode_t *sn0, *sn1; - sn0 = (Agsubnode_t *) arg0; - sn1 = (Agsubnode_t *) arg1; + Agsubnode_t *sn0 = arg0; + Agsubnode_t *sn1 = arg1; if (AGSEQ(sn0->node) < AGSEQ(sn1->node)) return -1; if (AGSEQ(sn0->node) > AGSEQ(sn1->node)) return 1;