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

lib/cgraph/io.c

index 27c7fbccc7108a9f4516c4c1818d46dac1132653..0a1d07895e011dad7251efacc6c3a3f6d9094e34 100644 (file)
@@ -30,7 +30,7 @@ static int ioputstr(void *chan, const char *str)
 
 static int ioflush(void *chan)
 {
-    return fflush((FILE *) chan);
+    return fflush(chan);
 }
 
 Agiodisc_t AgIoDisc = { iofread, ioputstr, ioflush };