From: Matthew Fernandez Date: Thu, 5 Jan 2023 15:55:07 +0000 (-0800) Subject: remove unnecessary casts when calling 'AGATTRWF' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3ace81b4f2f08275dc25b526d035d30affc640b4;p=graphviz remove unnecessary casts when calling 'AGATTRWF' --- diff --git a/cmd/tools/gv2gxl.c b/cmd/tools/gv2gxl.c index 53dd32173..c208e1527 100644 --- a/cmd/tools/gv2gxl.c +++ b/cmd/tools/gv2gxl.c @@ -634,7 +634,7 @@ writeNondefaultAttr(void *obj, FILE * gxlFile, Dict_t * defdict) } } } - AGATTRWF((Agobj_t *) obj) = !(AGATTRWF((Agobj_t *) obj)); + AGATTRWF(obj) = !(AGATTRWF(obj)); } /* nodeID: @@ -642,7 +642,7 @@ writeNondefaultAttr(void *obj, FILE * gxlFile, Dict_t * defdict) */ static int attrs_written(gxlstate_t * stp, void *obj) { - return !(AGATTRWF((Agobj_t *) obj) == stp->attrsNotWritten); + return !(AGATTRWF(obj) == stp->attrsNotWritten); } static void diff --git a/lib/cgraph/write.c b/lib/cgraph/write.c index 9e72d2c5c..7348b5ce9 100644 --- a/lib/cgraph/write.c +++ b/lib/cgraph/write.c @@ -501,7 +501,7 @@ static int write_nondefault_attrs(void *obj, iochan_t * ofile, CHKRV(ioput(g, ofile, "]")); Level--; } - AGATTRWF((Agobj_t *) obj) = TRUE; + AGATTRWF(obj) = TRUE; return 0; }