diff --git a/program/src/rrd_gfx.c b/program/src/rrd_gfx.c
index a241fc28bc9088dbd0d1e44e8cc5ac08405715df..44f668b8b70184de4248a0e600ebeefaa5dac94a 100644 (file)
--- a/program/src/rrd_gfx.c
+++ b/program/src/rrd_gfx.c
/* #define DEBUG */
#ifdef DEBUG
-# define DPRINTF(x,...) fprintf(stderr, x, ## __VA_ARGS__);
+# define DPRINTF(...) fprintf(stderr, __VA_ARGS__);
#else
-# define DPRINTF(x,...)
+# define DPRINTF(...)
#endif
#include "rrd_tool.h"
#include <png.h>
if (ch > 255) {
fputc('?', fp);
} else if (ch >= 126 || ch < 32) {
- fprintf(fp, "\\%03o", ch);
+ fprintf(fp, "\\%03o", (unsigned int)ch);
lineLen += 3;
} else {
fputc(ch, fp);