diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-08-17 08:53:05 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-08-26 16:47:32 +0200 |
commit | b97e3e3d7a203c5a331841386cb6955e36000991 (patch) | |
tree | 26d09aab2b53bfd869564018b900437781e5bbdf | |
parent | json: add support for byte arrays to json builder (diff) | |
download | systemd-b97e3e3d7a203c5a331841386cb6955e36000991.tar.xz systemd-b97e3e3d7a203c5a331841386cb6955e36000991.zip |
json: also add explicit dispatchers for 'int' and 'unsigned'
-rw-r--r-- | src/shared/json.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shared/json.h b/src/shared/json.h index 5fe363f507..1d6fec67b6 100644 --- a/src/shared/json.h +++ b/src/shared/json.h @@ -304,6 +304,12 @@ assert_cc(sizeof(uintmax_t) == sizeof(uint64_t)); assert_cc(sizeof(intmax_t) == sizeof(int64_t)); #define json_dispatch_int64 json_dispatch_integer +assert_cc(sizeof(uint32_t) == sizeof(unsigned)); +#define json_dispatch_uint json_dispatch_uint32 + +assert_cc(sizeof(int32_t) == sizeof(int)); +#define json_dispatch_int json_dispatch_int32 + static inline int json_dispatch_level(JsonDispatchFlags flags) { /* Did the user request no logging? If so, then never log higher than LOG_DEBUG. Also, if this is marked as |