From 30b68d3389614096d995914b53cd87cc3ce45e43 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Mar 2016 22:55:21 +0100 Subject: [PATCH] cu_mount_getoptionvalue: mark keyword as const --- src/utils_mount.c | 4 ++-- src/utils_mount.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils_mount.c b/src/utils_mount.c index 014620c8..03f41ad8 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -798,7 +798,7 @@ cu_mount_checkoption(char *line, const char *keyword, int full) } /* char *cu_mount_checkoption(char *line, char *keyword, int full) */ char * -cu_mount_getoptionvalue(char *line, char *keyword) +cu_mount_getoptionvalue(char *line, const char *keyword) { char *r; @@ -820,7 +820,7 @@ cu_mount_getoptionvalue(char *line, char *keyword) } } return r; -} /* char *cu_mount_getoptionvalue(char *line, char *keyword) */ +} /* char *cu_mount_getoptionvalue(char *line, const char *keyword) */ int cu_mount_type(const char *type) diff --git a/src/utils_mount.h b/src/utils_mount.h index 78bb7334..0a5c980f 100644 --- a/src/utils_mount.h +++ b/src/utils_mount.h @@ -153,7 +153,7 @@ char *cu_mount_checkoption(char *line, const char *keyword, int full); maybe you might want to try cu_mount_getoptionvalue()... */ -char *cu_mount_getoptionvalue(char *line, char *keyword); +char *cu_mount_getoptionvalue(char *line, const char *keyword); /* DESCRIPTION The cu_mount_getoptionvalue() function can be used to grab -- 2.11.0