]> git.ipfire.org Git - thirdparty/systemd.git/commit
json: minor optimization
authorLennart Poettering <lennart@poettering.net>
Fri, 12 Oct 2018 14:21:21 +0000 (16:21 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 18 Oct 2018 14:44:51 +0000 (16:44 +0200)
commit4fcb507a909c60d8568b17fc8a9dbb8c83029c01
tree01db05de66a7990e75ddfc780a30a874402925ec
parentd77e781fd017946093bd71448e546cf59921ee22
json: minor optimization

instead of comparing the magic JsonVariants one by one, let's simply
compare that they lie within a specific range.
src/basic/json-internal.h
src/basic/json.c