From: Matthew Fernandez Date: Fri, 8 Jul 2022 00:24:05 +0000 (-0700) Subject: cgraph agsubnodeidcmpf: remove unnecessary casts X-Git-Tag: 5.0.1~32^2~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e31934fd68f08ae9fda68c6e34735a74dacb3e5;p=graphviz cgraph agsubnodeidcmpf: remove unnecessary casts --- diff --git a/lib/cgraph/node.c b/lib/cgraph/node.c index 0f96ab778..4cb7fed8e 100644 --- a/lib/cgraph/node.c +++ b/lib/cgraph/node.c @@ -278,10 +278,9 @@ static int agsubnodeidcmpf(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 (AGID(sn0->node) < AGID(sn1->node)) return -1; if (AGID(sn0->node) > AGID(sn1->node)) return 1;