diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-18 03:33:39 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2021-02-18 03:48:07 +0900 |
commit | c633628dafaca7bdbb5995087e56da54fe20abb6 (patch) | |
tree | b629068e441105566a30f3b3399ba05a88e04f34 /src/systemctl | |
parent | 94af46fc66779ddaaff09c4dc704637c3158a3c5 (diff) | |
download | systemd-c633628dafaca7bdbb5995087e56da54fe20abb6.tar.gz |
tree-wide: constify variables if possible
Diffstat (limited to 'src/systemctl')
-rw-r--r-- | src/systemctl/systemctl-show.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl-show.c b/src/systemctl/systemctl-show.c index 6f3b3566d7..6410a41944 100644 --- a/src/systemctl/systemctl-show.c +++ b/src/systemctl/systemctl-show.c @@ -1474,7 +1474,7 @@ static int print_property(const char *name, const char *expected_value, sd_bus_m if (prefixlen > FAMILY_ADDRESS_SIZE(family) * 8) continue; - if (in_addr_prefix_to_string(family, (union in_addr_union *) ap, prefixlen, &str) < 0) + if (in_addr_prefix_to_string(family, (const union in_addr_union*) ap, prefixlen, &str) < 0) continue; if (!strextend_with_separator(&addresses, " ", str)) |