From: Ruben Kerkhof Date: Sat, 5 Mar 2016 21:55:21 +0000 (+0100) Subject: cu_mount_getoptionvalue: mark keyword as const X-Git-Tag: collectd-5.6.0~405 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=30b68d3389614096d995914b53cd87cc3ce45e43;p=collectd.git cu_mount_getoptionvalue: mark keyword as const --- 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