]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
busctl: make parameter const
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Jun 2018 16:51:49 +0000 (18:51 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 25 Jun 2018 16:26:17 +0000 (18:26 +0200)
it's initialized from an argv[] entry, hence let's be make it
non-writable by default.

src/busctl/busctl.c

index f9b23514c1e64ede1051616e666a5b64dfc8be94..69aae726b39ccfcf037ede569410eeaf78176372 100644 (file)
@@ -29,7 +29,7 @@
 
 static bool arg_no_pager = false;
 static bool arg_legend = true;
-static char *arg_address = NULL;
+static const char *arg_address = NULL;
 static bool arg_unique = false;
 static bool arg_acquired = false;
 static bool arg_activatable = false;