Code

increasse portability (no // comment, no ... arguments for cpp)
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 2 Feb 2007 12:19:12 +0000 (12:19 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 2 Feb 2007 12:19:12 +0000 (12:19 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@989 a5681a0c-68f1-0310-ab6d-d61299d08faa

program/src/rrd_gfx.c
program/src/rrd_rpncalc.c

index 351f958269374d3883900c58ce34e35a35410981..789ca95c7933e49ce43a099e32326b6dd6d5b52f 100644 (file)
@@ -1,4 +1,4 @@
-/****************************************************************************
+****************************************************************************
  * RRDtool 1.2.19  Copyright by Tobi Oetiker, 1997-2007
  ****************************************************************************
  * rrd_gfx.c  graphics wrapper for rrdtool
@@ -13,7 +13,7 @@
 # ifdef DEBUG
 #  define DPRINTF(...)  fprintf(stderr, __VA_ARGS__);
 # else
-#  define DPRINTF(...)
+#  define DPRINTF()
 # endif /* DEBUG */
 #endif /* _MSC_VER */
 #include "rrd_tool.h"
index f8759f8d67a84c91f3816b770d0f5efd3c068f84..a5ab61f9a2da7c526b14ebd770e0c541a0f19c16 100644 (file)
@@ -771,7 +771,7 @@ rpn_calc(rpnp_t *rpnp, rpnstack_t *rpnstack, long data_idx,
                      count++;
                      sum+=val;
                    }
-                   // now push the result bavk on stack
+                   /* now push the result back on stack */
                    if (count>0) {
                      rpnstack -> s[++stptr]=sum/count;
                    } else {