summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-28 14:22:47 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-28 14:30:50 -0500
commite6a7b9f45553fe0f73ba1f6134f4829b1d519658 (patch)
treea1de41eddd47ce541d08e3671c49e302932ca5d3 /src
parentfddf1a3189aa6e2ea641e0a9f995344c14e8d1e0 (diff)
mount: constify MountParameters
Diffstat (limited to 'src')
-rw-r--r--src/core/mount.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index fc160b6b1d..812d57dd06 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -74,13 +74,13 @@ static bool mount_needs_network(const char *options, const char *fstype) {
return false;
}
-static bool mount_is_network(MountParameters *p) {
+static bool mount_is_network(const MountParameters *p) {
assert(p);
return mount_needs_network(p->options, p->fstype);
}
-static bool mount_is_bind(MountParameters *p) {
+static bool mount_is_bind(const MountParameters *p) {
assert(p);
if (mount_test_option(p->options, "bind"))
@@ -98,13 +98,13 @@ static bool mount_is_bind(MountParameters *p) {
return false;
}
-static bool mount_is_auto(MountParameters *p) {
+static bool mount_is_auto(const MountParameters *p) {
assert(p);
return !mount_test_option(p->options, "noauto");
}
-static bool needs_quota(MountParameters *p) {
+static bool needs_quota(const MountParameters *p) {
assert(p);
if (mount_is_network(p))