summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-10-17 13:48:55 +0200
committerLennart Poettering <lennart@poettering.net>2014-10-17 13:49:08 +0200
commita004cb4cb2271e04e87d4fd6f7353307038e83ea (patch)
treec1d37cc84395f26452e99b7468e1e4bf260830ea
parent342641fb47618b783aeb3cdb65733afdb85b2260 (diff)
namespace: add missing 'const' to parameters
-rw-r--r--src/core/namespace.c6
-rw-r--r--src/core/namespace.h6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/core/namespace.c b/src/core/namespace.c
index c2215090a9..ab03aebf5b 100644
--- a/src/core/namespace.c
+++ b/src/core/namespace.c
@@ -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,
diff --git a/src/core/namespace.h b/src/core/namespace.h
index 9cd420e958..1f9d0676b4 100644
--- a/src/core/namespace.h
+++ b/src/core/namespace.h
@@ -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,