From: Tobias Oetiker Date: Tue, 7 Apr 2009 07:20:18 +0000 (+0000) Subject: fix lazy fix ... syntax error X-Git-Tag: 1.3.7~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0ce3d5a42effe7320c7a5bd182b9173289246944;p=thirdparty%2Frrdtool-1.x.git fix lazy fix ... syntax error git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.3/program@1775 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 2ad2cb1d..0d880ef3 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -3048,7 +3048,7 @@ int graph_paint( if (i < 0) return -1; - if ((i == 0)) + if (i == 0) return 0; /************************************************************** @@ -3076,9 +3076,8 @@ int graph_paint( grinfo_push(im, sprintf_alloc("graph_end"), RD_I_CNT, info); /* if we want and can be lazy ... quit now */ - if (lazy){ - return 0 - }; + if (lazy) + return 0; /* get actual drawing data and find min and max values */ if (data_proc(im) == -1)