]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
path-lookup: use path_strv_contains() rather than strv_contains()
authorMike Yuan <me@yhndnzj.com>
Sun, 15 Sep 2024 16:53:22 +0000 (18:53 +0200)
committerMike Yuan <me@yhndnzj.com>
Sun, 6 Oct 2024 17:32:54 +0000 (19:32 +0200)
src/libsystemd/sd-path/path-lookup.c

index 4a4e96ea6420b59febcf5fde63b0a1b3bcb23e81..6f6a7cb4b0f8168940c2ed987a63b51bca033e0b 100644 (file)
@@ -168,13 +168,13 @@ static char** user_dirs(
 bool path_is_user_data_dir(const char *path) {
         assert(path);
 
-        return strv_contains((char**) user_data_unit_paths, path);
+        return path_strv_contains((char* const*) user_data_unit_paths, path);
 }
 
 bool path_is_user_config_dir(const char *path) {
         assert(path);
 
-        return strv_contains((char**) user_config_unit_paths, path);
+        return path_strv_contains((char* const*) user_config_unit_paths, path);
 }
 
 static int acquire_generator_dirs(