From: Matthew Fernandez Date: Thu, 29 Oct 2020 01:18:31 +0000 (-0700) Subject: remove an unnecessary cast X-Git-Tag: 2.46.0~20^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75860d80e06ecc7fa87de7f19bc7e701e70439fb;p=graphviz remove an unnecessary cast Squashes a -Wcast-qual warning. --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 83a0e7d95..e83234d87 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -61,7 +61,7 @@ static const int PAGE_ALIGN = 4095; /* align to a 4K boundary (less one), typic static size_t gvwrite_no_z (GVJ_t * job, const char *s, size_t len) { if (job->gvc->write_fn) /* externally provided write dicipline */ - return (job->gvc->write_fn)(job, (char*)s, len); + return (job->gvc->write_fn)(job, s, len); if (job->output_data) { if (len > job->output_data_allocated - (job->output_data_position + 1)) { /* ensure enough allocation for string = null terminator */