summaryrefslogtreecommitdiffstats
path: root/src/xdg-autostart-generator/xdg-autostart-generator.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-02-22 10:47:23 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2024-03-07 18:49:44 +0100
commit9bc7493098a9b2cfc044e07be6d2690a2be99e13 (patch)
tree903a07abd1e6b1a8fd8685c04f400e1359a0797a /src/xdg-autostart-generator/xdg-autostart-generator.c
parentudevd: inline iterator variable (diff)
downloadsystemd-9bc7493098a9b2cfc044e07be6d2690a2be99e13.tar.xz
systemd-9bc7493098a9b2cfc044e07be6d2690a2be99e13.zip
strv: add helper to extend strv from both sides
Also, use the more correct type of 'const char* const*' for the input strv. This requires adding the cast in a few places, but also allows to remove some casts in others.
Diffstat (limited to 'src/xdg-autostart-generator/xdg-autostart-generator.c')
-rw-r--r--src/xdg-autostart-generator/xdg-autostart-generator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdg-autostart-generator/xdg-autostart-generator.c b/src/xdg-autostart-generator/xdg-autostart-generator.c
index 616c017357..71e1a66435 100644
--- a/src/xdg-autostart-generator/xdg-autostart-generator.c
+++ b/src/xdg-autostart-generator/xdg-autostart-generator.c
@@ -37,7 +37,7 @@ static int enumerate_xdg_autostart(Hashmap *all_services) {
r = xdg_user_dirs(&config_dirs, &data_dirs);
if (r < 0)
return r;
- r = strv_extend_strv_concat(&autostart_dirs, config_dirs, "/autostart");
+ r = strv_extend_strv_concat(&autostart_dirs, (const char* const*) config_dirs, "/autostart");
if (r < 0)
return r;