From 3ca4ec20120a88de815200400607e679df7f0783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Mon, 7 Nov 2022 11:21:29 +0100 Subject: [PATCH] shared/mount-util: fix comment Just typos and grammar. In the end didn't add a use of a function, but I read the comment carefully, and this commit is the result of that. --- src/shared/mount-util.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/shared/mount-util.c b/src/shared/mount-util.c index 6742b7c755..1f827e2061 100644 --- a/src/shared/mount-util.c +++ b/src/shared/mount-util.c @@ -718,20 +718,18 @@ int mount_option_mangle( _cleanup_free_ char *ret = NULL; int r; - /* This extracts mount flags from the mount options, and store + /* This extracts mount flags from the mount options, and stores * non-mount-flag options to '*ret_remaining_options'. * E.g., * "rw,nosuid,nodev,relatime,size=1630748k,mode=700,uid=1000,gid=1000" * is split to MS_NOSUID|MS_NODEV|MS_RELATIME and * "size=1630748k,mode=700,uid=1000,gid=1000". - * See more examples in test-mount-utils.c. + * See more examples in test-mount-util.c. * - * Note that if 'options' does not contain any non-mount-flag options, + * If 'options' does not contain any non-mount-flag options, * then '*ret_remaining_options' is set to NULL instead of empty string. - * Note that this does not check validity of options stored in - * '*ret_remaining_options'. - * Note that if 'options' is NULL, then this just copies 'mount_flags' - * to '*ret_mount_flags'. */ + * The validity of options stored in '*ret_remaining_options' is not checked. + * If 'options' is NULL, this just copies 'mount_flags' to *ret_mount_flags. */ assert(ret_mount_flags); assert(ret_remaining_options);