1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 10:51:20 +03:00

mount: constify MountParameters

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-11-28 14:22:47 -05:00
parent fddf1a3189
commit e6a7b9f455

View File

@ -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))