]> granicus.if.org Git - graphviz/commitdiff
remove an unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 29 Oct 2020 01:18:31 +0000 (18:18 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 4 Nov 2020 15:37:28 +0000 (07:37 -0800)
Squashes a -Wcast-qual warning.

lib/gvc/gvdevice.c

index 83a0e7d950d70ed7124cf99c1021018f9e233e79..e83234d8756c78bd978580743652da897af45456 100644 (file)
@@ -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 */