diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-08-20 10:54:49 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-08-20 11:09:48 +0200 |
commit | 85b55869bc1065754fdd35ef43ff324cc5e3ef2e (patch) | |
tree | 013fe377acb8a8617c700af9b14fa3be95acb06c /src/shared/user-record.c | |
parent | sd-id128: add compound literal love to sd_id128_to_string() + id128_to_uuid_s... (diff) | |
download | systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.tar.xz systemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.zip |
tree-wide: port everything over to new sd-id128 compund literal bliss
Diffstat (limited to 'src/shared/user-record.c')
-rw-r--r-- | src/shared/user-record.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/shared/user-record.c b/src/shared/user-record.c index 17460ceaf6..9bd6a03887 100644 --- a/src/shared/user-record.c +++ b/src/shared/user-record.c @@ -1127,7 +1127,6 @@ static int dispatch_binding(const char *name, JsonVariant *variant, JsonDispatch {}, }; - char smid[SD_ID128_STRING_MAX]; JsonVariant *m; sd_id128_t mid; int r; @@ -1142,7 +1141,7 @@ static int dispatch_binding(const char *name, JsonVariant *variant, JsonDispatch if (r < 0) return json_log(variant, flags, r, "Failed to determine machine ID: %m"); - m = json_variant_by_key(variant, sd_id128_to_string(mid, smid)); + m = json_variant_by_key(variant, SD_ID128_TO_STRING(mid)); if (!m) return 0; @@ -1368,7 +1367,6 @@ static int dispatch_status(const char *name, JsonVariant *variant, JsonDispatchF {}, }; - char smid[SD_ID128_STRING_MAX]; JsonVariant *m; sd_id128_t mid; int r; @@ -1383,7 +1381,7 @@ static int dispatch_status(const char *name, JsonVariant *variant, JsonDispatchF if (r < 0) return json_log(variant, flags, r, "Failed to determine machine ID: %m"); - m = json_variant_by_key(variant, sd_id128_to_string(mid, smid)); + m = json_variant_by_key(variant, SD_ID128_TO_STRING(mid)); if (!m) return 0; |