/* #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);