diff options
author | Karel Zak | 2011-06-23 15:07:55 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-23 15:07:55 +0200 |
commit | 9f7472b0b84f3238abe19fcbf5a2fb864fd2e71d (patch) | |
tree | 14321ff72c2f77a112936a2d95ac6956f0184c50 /libmount/src/optstr.c | |
parent | libmount: fix fstype caching (diff) | |
download | kernel-qcow2-util-linux-9f7472b0b84f3238abe19fcbf5a2fb864fd2e71d.tar.gz kernel-qcow2-util-linux-9f7472b0b84f3238abe19fcbf5a2fb864fd2e71d.tar.xz kernel-qcow2-util-linux-9f7472b0b84f3238abe19fcbf5a2fb864fd2e71d.zip |
libmount: add support for mount -a
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/optstr.c')
-rw-r--r-- | libmount/src/optstr.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmount/src/optstr.c b/libmount/src/optstr.c index 406afc4b7..78b7571d2 100644 --- a/libmount/src/optstr.c +++ b/libmount/src/optstr.c @@ -273,15 +273,15 @@ int mnt_optstr_prepend_option(char **optstr, const char *name, const char *value * Returns: 0 on success, 1 when not found the @name or negative number in case * of error. */ -int mnt_optstr_get_option(char *optstr, const char *name, - char **value, size_t *valsz) +int mnt_optstr_get_option(const char *optstr, const char *name, + char **value, size_t *valsz) { struct libmnt_optloc ol; int rc; mnt_init_optloc(&ol); - rc = mnt_optstr_locate_option(optstr, name, &ol); + rc = mnt_optstr_locate_option((char *) optstr, name, &ol); if (!rc) { if (value) *value = ol.value; |