summaryrefslogtreecommitdiff
path: root/lib/json.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2017-06-30 10:44:03 -0400
committerGitHub <noreply@github.com>2017-06-30 10:44:03 -0400
commit801ec168a41bbeed2d2935d0e396396356873cba (patch)
tree469bf84e0b7621857e15055d10f21a2d506d5ab9 /lib/json.c
parentfd576f61bc69eb303eb7400f1234a4253bce9087 (diff)
parentd849012d19f1743691a05f4c38f69e6af5110806 (diff)
Merge pull request #769 from qlyoung/fix-json-int
lib: always use 64-bit integers for json
Diffstat (limited to 'lib/json.c')
-rw-r--r--lib/json.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/json.c b/lib/json.c
index 5b7c3e9ffa..d8c97e4486 100644
--- a/lib/json.c
+++ b/lib/json.c
@@ -48,13 +48,7 @@ json_object_string_add(struct json_object* obj, const char *key,
}
void
-json_object_int_add(struct json_object* obj, const char *key, int32_t i)
-{
- json_object_object_add(obj, key, json_object_new_int(i));
-}
-
-void
-json_object_long_add(struct json_object* obj, const char *key, int64_t i)
+json_object_int_add(struct json_object* obj, const char *key, int64_t i)
{
#if defined(HAVE_JSON_C_JSON_H)
json_object_object_add(obj, key, json_object_new_int64(i));