]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
ssh-generator: drop unused variable 40556/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 31 Jan 2026 06:31:36 +0000 (15:31 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 3 Feb 2026 07:50:00 +0000 (16:50 +0900)
src/ssh-generator/ssh-generator.c

index 49a01334f57e869321d94831d9933f3085879c54..e596d369338b6ea564aa4f9e8c12e088ecfcc2ec 100644 (file)
@@ -33,7 +33,6 @@
  * The first two provide a nice way for hosts to connect to containers and VMs they invoke via the usual SSH
  * logic, but without waiting for networking or suchlike. The third allows the same for local clients. */
 
-static const char *arg_dest = NULL;
 static bool arg_auto = true;
 static char **arg_listen_extra = NULL;
 
@@ -444,7 +443,7 @@ static int parse_credentials(void) {
 static int run(const char *dest, const char *dest_early, const char *dest_late) {
         int r;
 
-        assert_se(arg_dest = dest);
+        assert(dest);
 
         r = proc_cmdline_parse(parse_proc_cmdline_item, /* userdata= */ NULL, /* flags= */ 0);
         if (r < 0)