summaryrefslogtreecommitdiff
path: root/src/home/homed-home.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-08-20 10:54:49 +0200
committerLennart Poettering <lennart@poettering.net>2021-08-20 11:09:48 +0200
commit85b55869bc1065754fdd35ef43ff324cc5e3ef2e (patch)
tree013fe377acb8a8617c700af9b14fa3be95acb06c /src/home/homed-home.c
parentc970388b22e81a90f58fdbed195413229d89d6d7 (diff)
downloadsystemd-85b55869bc1065754fdd35ef43ff324cc5e3ef2e.tar.gz
tree-wide: port everything over to new sd-id128 compund literal bliss
Diffstat (limited to 'src/home/homed-home.c')
-rw-r--r--src/home/homed-home.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/home/homed-home.c b/src/home/homed-home.c
index 351b88df4e..bbdc6940f3 100644
--- a/src/home/homed-home.c
+++ b/src/home/homed-home.c
@@ -2163,7 +2163,6 @@ int home_augment_status(
uint64_t disk_size = UINT64_MAX, disk_usage = UINT64_MAX, disk_free = UINT64_MAX, disk_ceiling = UINT64_MAX, disk_floor = UINT64_MAX;
_cleanup_(json_variant_unrefp) JsonVariant *j = NULL, *v = NULL, *m = NULL, *status = NULL;
_cleanup_(user_record_unrefp) UserRecord *ur = NULL;
- char ids[SD_ID128_STRING_MAX];
HomeState state;
sd_id128_t id;
int r;
@@ -2227,7 +2226,7 @@ int home_augment_status(
j = json_variant_ref(h->record->json);
v = json_variant_ref(json_variant_by_key(j, "status"));
- m = json_variant_ref(json_variant_by_key(v, sd_id128_to_string(id, ids)));
+ m = json_variant_ref(json_variant_by_key(v, SD_ID128_TO_STRING(id)));
r = json_variant_filter(&m, STRV_MAKE("diskSize", "diskUsage", "diskFree", "diskCeiling", "diskFloor", "signedLocally"));
if (r < 0)
@@ -2237,7 +2236,7 @@ int home_augment_status(
if (r < 0)
return r;
- r = json_variant_set_field(&v, ids, m);
+ r = json_variant_set_field(&v, SD_ID128_TO_STRING(id), m);
if (r < 0)
return r;