]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary casts when calling 'AGATTRWF'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 5 Jan 2023 15:55:07 +0000 (07:55 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 8 Jan 2023 15:55:09 +0000 (07:55 -0800)
cmd/tools/gv2gxl.c
lib/cgraph/write.c

index 53dd32173f7fd26b3f610741e251a4eb1e4afd9f..c208e1527ff1eddf6901c95ef360bc306a84ed3b 100644 (file)
@@ -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
index 9e72d2c5c38f83f697b08490749f88398a0b23b3..7348b5ce9b4a8fa3d3bd03094657253f77e9b0b3 100644 (file)
@@ -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;
 }