]> granicus.if.org Git - graphviz/commitdiff
tcldot myiodisc_memiofread: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 6 Sep 2021 18:25:32 +0000 (11:25 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 9 Sep 2021 03:28:07 +0000 (20:28 -0700)
This pointer implicitly coerces.

tclpkg/tcldot/tcldot-io.c

index bf047be1f4ea0299c1752f30a6cd68d28525d144..f640aaad32af0280ea4f52d5508cd706bf99bf10 100644 (file)
@@ -89,7 +89,7 @@ int myiodisc_memiofread(void *chan, char *buf, int bufsize)
     rdr_t *s;
 
     if (bufsize == 0) return 0;
-    s = (rdr_t *) chan;
+    s = chan;
     if (s->cur >= s->len)
         return 0;
     l = 0;