]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ssh-generator: prefer using SD_JSON_BUILD_PAIR_STRING
authorJelle van der Waa <jelle@vdwaa.nl>
Fri, 14 Nov 2025 14:43:30 +0000 (15:43 +0100)
committerJelle van der Waa <jelle@vdwaa.nl>
Fri, 14 Nov 2025 14:43:30 +0000 (15:43 +0100)
No functional change, just refactoring.

src/ssh-generator/ssh-proxy.c

index fcdc40c09dc7c99cdb768966ce969dc54ab0cfef..30d5a7eed7012f6705c4b5fc86774cc7ad6c1813 100644 (file)
@@ -158,7 +158,7 @@ static int fetch_machine(const char *machine, RuntimeScope scope, sd_json_varian
                         "io.systemd.Machine.List",
                         &result,
                         &error_id,
-                        SD_JSON_BUILD_PAIR("name", SD_JSON_BUILD_STRING(machine)));
+                        SD_JSON_BUILD_PAIR_STRING("name", machine));
         if (r < 0)
                 return log_error_errno(r, "Failed to issue io.systemd.Machine.List() varlink call: %m");
         if (error_id) {