]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-dns-rr.c
tree-wide: take in all *our* JSON structures also decimal strings 29907/head
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Nov 2023 13:17:10 +0000 (14:17 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Nov 2023 13:25:40 +0000 (14:25 +0100)
commit9942f855a920c2bf56b61749193dba46d514dbbb
treef3dfaf89048956f7012e19298e2ddadc84acb205
parent67a3028555c58cea152cd8b8e863a643eb147a97
tree-wide: take in all *our* JSON structures also decimal strings

Let's be friendly in what we accept: whenever we define a JSON
structure, let's also allow decimal strings where we want an integer.

This patch purely replaces JSON_VARIANT_UNSIGNED by
_JSON_VARIANT_TYPE_INVALID in the various JsonDispatch[] tables, so that
we'll happily accept any type in json_dispatch(), so that
json_dispatch_uint64() and related tools can do their thing.

This does not switch over OCI (as a JSON structure not defined by us).
src/hibernate-resume/hibernate-resume-config.c
src/nss-resolve/nss-resolve.c
src/oom/oomd-manager.c
src/pcrextend/pcrextend.c
src/resolve/resolvectl.c
src/resolve/resolved-dns-rr.c
src/resolve/resolved-varlink.c
src/shared/group-record.c
src/shared/tpm2-util.c
src/shared/user-record.c
src/shared/varlink-io.systemd.service.c