summaryrefslogtreecommitdiffstats
path: root/util/json.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 08:17:09 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-04-03 08:17:29 +0000
commit61c4ff8b2ddc3841050c17a5f87791653dbd2b7b (patch)
treee97b4f25c511372d73bdd96c389c5f468d99138a /util/json.c
parentAdding upstream version 2.4. (diff)
downloadnvme-cli-61c4ff8b2ddc3841050c17a5f87791653dbd2b7b.tar.xz
nvme-cli-61c4ff8b2ddc3841050c17a5f87791653dbd2b7b.zip
Adding upstream version 2.4+really2.3.upstream/2.4+really2.3
This reverts commit f42531334c05b7f49ae43c0a27e347a487fb2667.
Diffstat (limited to '')
-rw-r--r--util/json.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/util/json.c b/util/json.c
index 2de5848..84d43e5 100644
--- a/util/json.c
+++ b/util/json.c
@@ -35,24 +35,10 @@ struct json_object *util_json_object_new_uint64(uint64_t i)
}
-static int util_json_object_string_to_number(struct json_object *jso,
- struct printbuf *pb, int level,
- int flags)
-{
- ssize_t len = json_object_get_string_len(jso);
-
- printbuf_memappend(pb, json_object_get_string(jso), len);
-
- return 0;
-}
-
struct json_object *util_json_object_new_uint128(nvme_uint128_t val)
{
struct json_object *obj;
-
obj = json_object_new_string(uint128_t_to_string(val));
- json_object_set_serializer(obj, util_json_object_string_to_number, NULL, NULL);
-
return obj;
}