mirror of
https://github.com/systemd/systemd.git
synced 2026-08-09 09:32:04 +00:00
sd-json: encode pidref fd_id as unsigned
PidRef.fd_id is uint64_t.
This commit is contained in:
committed by
Yu Watanabe
parent
9eee40e687
commit
bc9870a923
@@ -499,7 +499,7 @@ int json_variant_new_pidref(sd_json_variant **ret, PidRef *pidref) {
|
||||
return sd_json_buildo(
|
||||
ret,
|
||||
SD_JSON_BUILD_PAIR_INTEGER("pid", pidref->pid),
|
||||
SD_JSON_BUILD_PAIR_CONDITION(pidref->fd_id > 0, "pidfdId", SD_JSON_BUILD_INTEGER(pidref->fd_id)),
|
||||
SD_JSON_BUILD_PAIR_CONDITION(pidref->fd_id > 0, "pidfdId", SD_JSON_BUILD_UNSIGNED(pidref->fd_id)),
|
||||
SD_JSON_BUILD_PAIR_CONDITION(!sd_id128_is_null(boot_id), "bootId", SD_JSON_BUILD_ID128(boot_id)));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user