diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-14 09:52:31 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-12-15 06:15:55 +0100 |
commit | b205e59ad49aa0ea69496c43ffbc467299e85d21 (patch) | |
tree | c25f085e760ac64a386ed314c66266e09b1772f2 /src/basic | |
parent | mount-util: mount flag is unsigned long (diff) | |
download | systemd-b205e59ad49aa0ea69496c43ffbc467299e85d21.tar.xz systemd-b205e59ad49aa0ea69496c43ffbc467299e85d21.zip |
mountpoint-util: rename mount_propagation_flags_to_string() and friends as singular
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/mountpoint-util.c | 4 | ||||
-rw-r--r-- | src/basic/mountpoint-util.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c index 09fbdcfebe..0c9fc0a350 100644 --- a/src/basic/mountpoint-util.c +++ b/src/basic/mountpoint-util.c @@ -568,7 +568,7 @@ int mount_nofollow( return mount_fd(source, fd, filesystemtype, mountflags, data); } -const char *mount_propagation_flags_to_string(unsigned long flags) { +const char *mount_propagation_flag_to_string(unsigned long flags) { switch (flags & (MS_SHARED|MS_SLAVE|MS_PRIVATE)) { case 0: @@ -584,7 +584,7 @@ const char *mount_propagation_flags_to_string(unsigned long flags) { return NULL; } -int mount_propagation_flags_from_string(const char *name, unsigned long *ret) { +int mount_propagation_flag_from_string(const char *name, unsigned long *ret) { if (isempty(name)) *ret = 0; diff --git a/src/basic/mountpoint-util.h b/src/basic/mountpoint-util.h index da5d852ff3..c7b24584da 100644 --- a/src/basic/mountpoint-util.h +++ b/src/basic/mountpoint-util.h @@ -55,5 +55,5 @@ int dev_is_devtmpfs(void); int mount_fd(const char *source, int target_fd, const char *filesystemtype, unsigned long mountflags, const void *data); int mount_nofollow(const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data); -const char *mount_propagation_flags_to_string(unsigned long flags); -int mount_propagation_flags_from_string(const char *name, unsigned long *ret); +const char *mount_propagation_flag_to_string(unsigned long flags); +int mount_propagation_flag_from_string(const char *name, unsigned long *ret); |