]> granicus.if.org Git - graphviz/commitdiff
void cast warning in gvjobs.c
authorellson <devnull@localhost>
Tue, 1 Mar 2005 17:43:56 +0000 (17:43 +0000)
committerellson <devnull@localhost>
Tue, 1 Mar 2005 17:43:56 +0000 (17:43 +0000)
remove unused variable in gvrender_cairo.c

lib/gvc/gvcint.h
lib/gvc/gvjobs.c

index 3a2ffb50861661629a95a799b0e1cb98664492c1..eec1b008174776b50235967ae9f274c80705d0fc 100644 (file)
 extern "C" {
 #endif
 
+#ifndef FALSE
+#define FALSE 0
+#define TRUE (! FALSE)
+#endif
+
 #define ARRAY_SIZE(A) (sizeof(A)/sizeof(A[0]))
 
     typedef enum { PEN_NONE, PEN_DASHED, PEN_DOTTED, PEN_SOLID } pen_type;
index 20b8da15d3c0415b9e7708aed6ca5e45b0108b64..d1141fab6e4f98bdefee8d35ae3ec1a984e9d120 100644 (file)
@@ -86,7 +86,9 @@ boolean gvrender_output_langname_job(GVC_t * gvc, char *name)
     output_langname_job->output_langname = name;
 
     /* load it now to check that it exists */
-    return ((boolean)gvplugin_load(gvc, API_render, name));
+    if (gvplugin_load(gvc, API_render, name))
+       return TRUE;
+    return FALSE;
 }
 
 #if 0