From: ellson Date: Sat, 10 Nov 2007 02:17:07 +0000 (+0000) Subject: Janitor fixes X-Git-Tag: LAST_LIBGRAPH~32^2~5040 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=476ec8bb0379d820fb9abb9d525ffa45277b2bd9;p=graphviz Janitor fixes --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index aef5b54aa..acfe229ac 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -93,11 +93,13 @@ size_t gvdevice_write (GVJ_t * job, const unsigned char *s, unsigned int len) return 0; } } - strcpy(job->output_data + job->output_data_position, s); + strcpy(job->output_data + job->output_data_position, (char*)s); job->output_data_position += len; + return len; } else return fwrite(s, sizeof(char), len, job->output_file); + return 0; } static void auto_output_filename(GVJ_t *job) diff --git a/plugin/core/gvrender_core_ps.c b/plugin/core/gvrender_core_ps.c index 1298c8ed6..187131df7 100644 --- a/plugin/core/gvrender_core_ps.c +++ b/plugin/core/gvrender_core_ps.c @@ -262,7 +262,6 @@ static void ps_set_color(GVJ_t *job, gvcolor_t *color) static void psgen_textpara(GVJ_t * job, pointf p, textpara_t * para) { - double adj; char *str; if (job->obj->pencolor.u.HSVA[3] < .5) diff --git a/tclpkg/gv/.cvsignore b/tclpkg/gv/.cvsignore index 67169075d..30ac3395b 100644 --- a/tclpkg/gv/.cvsignore +++ b/tclpkg/gv/.cvsignore @@ -22,6 +22,7 @@ swig.cmi swig.cmo swig.ml swig.mli +META.gv gv.php gv.pm gv.py