[Olsr-dev] [PATCH v1 108/115] jsoninfo: helpers: fix output format for int/long

Ferry Huberts (spam-protected)
Wed Dec 2 21:29:21 CET 2015


From: Ferry Huberts <(spam-protected)>

Signed-off-by: Ferry Huberts <(spam-protected)>
---
 lib/jsoninfo/src/olsrd_jsoninfo_helpers.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/jsoninfo/src/olsrd_jsoninfo_helpers.c b/lib/jsoninfo/src/olsrd_jsoninfo_helpers.c
index 38e60b5..c005a0c 100644
--- a/lib/jsoninfo/src/olsrd_jsoninfo_helpers.c
+++ b/lib/jsoninfo/src/olsrd_jsoninfo_helpers.c
@@ -141,7 +141,7 @@ void abuf_json_string(struct autobuf *abuf, const char* key, const char* value)
 void abuf_json_int(struct autobuf *abuf, const char* key, long value) {
   abuf_json_insert_comma(abuf);
   abuf_json_new_indent(abuf);
-  abuf_appendf(abuf, "\"%s\": %li", key, value);
+  abuf_appendf(abuf, "\"%s\": %ld", key, value);
   entrynumber[currentjsondepth]++;
 }
 
-- 
2.5.0




More information about the Olsr-dev mailing list