From: Felix Fietkau Date: Sat, 7 Apr 2018 08:36:38 +0000 (+0200) Subject: jshn: fix format string for int64 type X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=42a8ecd8587055fba686243a902a212915493900;p=project%2Flibubox.git jshn: fix format string for int64 type Signed-off-by: Felix Fietkau --- diff --git a/jshn.c b/jshn.c index 7f67746..24e3265 100644 --- a/jshn.c +++ b/jshn.c @@ -27,6 +27,7 @@ #include #include #include +#include #include "list.h" #include "avl.h" @@ -156,7 +157,7 @@ static int add_json_element(const char *key, json_object *obj) fprintf(stdout, "' %d;\n", json_object_get_boolean(obj)); break; case json_type_int: - fprintf(stdout, "' %jd;\n", json_object_get_int64(obj)); + fprintf(stdout, "' %"PRId64";\n", json_object_get_int64(obj)); break; case json_type_double: fprintf(stdout, "' %lf;\n", json_object_get_double(obj));