]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
utils/json: Add json_object_new_uint64 for json-c < 0.14
authorleonardo.da.cunha <leo.da.cunha@solidigm.com>
Thu, 27 Oct 2022 22:46:22 +0000 (15:46 -0700)
committerDaniel Wagner <dwagner@suse.de>
Fri, 28 Oct 2022 08:23:59 +0000 (10:23 +0200)
commit828bdff38429353f44d5ebfaf705b548f7e95e3f
tree271c2769432dfb22b065a10258e4696959d9a195
parentd26d9862a600ca572e8382179b8edc77ed278b03
utils/json: Add json_object_new_uint64 for json-c < 0.14

json-c 0.14 added json_object_new_uint64 but older version are missing
this function. Instead defining two different json_object_object_add
version we can just define the fallback function first.

[dwagner: rewrote the commit message]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
util/json.h