ssh-generator: prefer using SD_JSON_BUILD_PAIR_STRING

No functional change, just refactoring.
This commit is contained in:
Jelle van der Waa
2025-11-14 15:43:30 +01:00
parent 7e5d718046
commit 1b636f1d3f
+1 -1
View 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) {