summaryrefslogtreecommitdiff
path: root/com32/gpllib
diff options
context:
space:
mode:
authorErwan Velu <erwanaliasr1@gmail.com>2011-03-20 21:28:40 +0100
committerErwan Velu <erwanaliasr1@gmail.com>2011-03-20 21:28:40 +0100
commitadcbc88928e459e9735764057686a9d63a680d60 (patch)
tree9c6c2de2afd36e585347c256ff8e043edbb47c8f /com32/gpllib
parent95e239ee7700114c9ca6a1765d9bdd74241a1eb8 (diff)
downloadsyslinux-adcbc88928e459e9735764057686a9d63a680d60.tar.gz
zzjson: Use PRINT() instead of PUTC()
PUTC() call didn't got caught when using the bufprintf. We can use the PRINT() macro instead.
Diffstat (limited to 'com32/gpllib')
-rw-r--r--com32/gpllib/zzjson/zzjson_print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/com32/gpllib/zzjson/zzjson_print.c b/com32/gpllib/zzjson/zzjson_print.c
index c222eb6f..8a274c32 100644
--- a/com32/gpllib/zzjson/zzjson_print.c
+++ b/com32/gpllib/zzjson/zzjson_print.c
@@ -6,7 +6,8 @@
#include "zzjson.h"
#define PRINT(fmt...) if (config->print(config->ohandle, ##fmt) < 0) return -1;
-#define PUTC(c) if (config->putchar(c, config->ohandle) < 0) return -1;
+//#define PUTC(c) if (config->putchar(c, config->ohandle) < 0) return -1;
+#define PUTC(c) PRINT("%c",c)
#define INC 4
static int print_string(ZZJSON_CONFIG *config, char *s) {