]> granicus.if.org Git - graphviz/commitdiff
remove unnecessary cast in ioputstr
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 22 Jun 2021 04:05:18 +0000 (21:05 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 26 Jun 2021 00:03:55 +0000 (17:03 -0700)
The function fputs takes a FILE* as its second argument, to which void*
implicitly coerces.

lib/cgraph/io.c

index 9ec1e9b7ef807b7c82180b0e2a1987bc7a11df65..27c7fbccc7108a9f4516c4c1818d46dac1132653 100644 (file)
@@ -25,7 +25,7 @@ static int iofread(void *chan, char *buf, int bufsize)
 /* default IO methods */
 static int ioputstr(void *chan, const char *str)
 {
-    return fputs(str, (FILE *) chan);
+    return fputs(str, chan);
 }
 
 static int ioflush(void *chan)