]> granicus.if.org Git - graphviz/commitdiff
common: remove some unnecessary casts
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 19 Jul 2022 02:25:57 +0000 (19:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 26 Jul 2022 02:01:27 +0000 (19:01 -0700)
lib/common/output.c

index 648409c5a4d09f1138cadacf0e7769e4036fdc21..5a488ab920321c1947d3009be177a689817856fc 100644 (file)
@@ -30,13 +30,13 @@ static int (*putstr) (void *chan, const char *str);
 
 static void agputs (const char* s, FILE* fp)
 {
-    putstr ((void*)fp, s);
+    putstr(fp, s);
 }
 static void agputc (int c, FILE* fp)
 {
     static char buf[2] = {'\0','\0'};
     buf[0] = c;
-    putstr ((void*)fp, buf);
+    putstr(fp, buf);
 }