]> granicus.if.org Git - graphviz/commitdiff
remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 29 May 2021 18:04:05 +0000 (11:04 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 5 Jun 2021 00:01:14 +0000 (17:01 -0700)
This pointer implicitly coerces.

lib/ingraphs/ingraphs.c

index 10b0ad15df8b393733cb499271a509522ff70543..e4d6602c4e97ca112c25e6b2946a29129bde8ec6 100644 (file)
@@ -151,7 +151,7 @@ static void *dflt_open(char *f)
 
 static int dflt_close(void *fp)
 {
-    return fclose((FILE *) fp);
+    return fclose(fp);
 }
 
 typedef Agraph_t *(*xopengfn) (void *);