]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/home/homectl.c
tree-wide: port everything over to new sd-id128 compund literal bliss
[thirdparty/systemd.git] / src / home / homectl.c
index 66e1467d1a9179269b37f932910eead0f3f5ec5f..227c499c9c7e16b7b7beec663ec676e7de23dbfe 100644 (file)
@@ -817,14 +817,13 @@ static int apply_identity_changes(JsonVariant **_v) {
 
         if (arg_identity_extra_this_machine || !strv_isempty(arg_identity_filter)) {
                 _cleanup_(json_variant_unrefp) JsonVariant *per_machine = NULL, *mmid = NULL;
-                char mids[SD_ID128_STRING_MAX];
                 sd_id128_t mid;
 
                 r = sd_id128_get_machine(&mid);
                 if (r < 0)
                         return log_error_errno(r, "Failed to acquire machine ID: %m");
 
-                r = json_variant_new_string(&mmid, sd_id128_to_string(mid, mids));
+                r = json_variant_new_string(&mmid, SD_ID128_TO_STRING(mid));
                 if (r < 0)
                         return log_error_errno(r, "Failed to allocate matchMachineId object: %m");