diff options
author | Felix Fietkau <nbd@nbd.name> | 2018-04-07 11:36:38 +0300 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2018-04-07 11:36:38 +0300 |
commit | 42a8ecd8587055fba686243a902a212915493900 (patch) | |
tree | 94d95a530e64f3d1c8f6ea2583cc002e6e936aba /jshn.c | |
parent | eebe3fcd2a5728264faa5ae72bbc38d7bb704c8e (diff) |
jshn: fix format string for int64 type
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'jshn.c')
-rw-r--r-- | jshn.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -27,6 +27,7 @@ #include <getopt.h> #include <sys/stat.h> #include <fcntl.h> +#include <inttypes.h> #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)); |