chiark / gitweb /
namespace: add missing 'const' to parameters
authorLennart Poettering <lennart@poettering.net>
Fri, 17 Oct 2014 11:48:55 +0000 (13:48 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 17 Oct 2014 11:49:08 +0000 (13:49 +0200)
src/core/namespace.c
src/core/namespace.h

index c2215090a9dfa2bea6d7ecc572d1e22d362b2dac..ab03aebf5b5dd9209a3c32b60c32be94eee94599 100644 (file)
@@ -424,9 +424,9 @@ int setup_namespace(
                 char** read_write_dirs,
                 char** read_only_dirs,
                 char** inaccessible_dirs,
-                char* tmp_dir,
-                char* var_tmp_dir,
-                char* bus_endpoint_path,
+                const char* tmp_dir,
+                const char* var_tmp_dir,
+                const char* bus_endpoint_path,
                 bool private_dev,
                 ProtectHome protect_home,
                 ProtectSystem protect_system,
index 9cd420e9589c074962c2a1d1d887fc4b1d35d1bd..1f9d0676b437aecad26d547185a328cdc2f7321a 100644 (file)
@@ -44,9 +44,9 @@ typedef enum ProtectSystem {
 int setup_namespace(char **read_write_dirs,
                     char **read_only_dirs,
                     char **inaccessible_dirs,
-                    char *tmp_dir,
-                    char *var_tmp_dir,
-                    char *endpoint_path,
+                    const char *tmp_dir,
+                    const char *var_tmp_dir,
+                    const char *endpoint_path,
                     bool private_dev,
                     ProtectHome protect_home,
                     ProtectSystem protect_system,