From: Ruben Kerkhof Date: Sat, 5 Mar 2016 13:10:53 +0000 (+0100) Subject: cu_mount_checkoption: mark keyword as const X-Git-Tag: collectd-5.6.0~423 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0747827697f794117896501d6c8357c938730ce3;p=collectd.git cu_mount_checkoption: mark keyword as const --- diff --git a/src/utils_mount.c b/src/utils_mount.c index 36d8d640..014620c8 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -757,7 +757,7 @@ void cu_mount_freelist (cu_mount_t *list) } /* void cu_mount_freelist(cu_mount_t *list) */ char * -cu_mount_checkoption(char *line, char *keyword, int full) +cu_mount_checkoption(char *line, const char *keyword, int full) { char *line2, *l2, *p1, *p2; int l; diff --git a/src/utils_mount.h b/src/utils_mount.h index 7518188d..78bb7334 100644 --- a/src/utils_mount.h +++ b/src/utils_mount.h @@ -113,7 +113,7 @@ void cu_mount_freelist(cu_mount_t *list); allocated by *list and *list itself as well. */ -char *cu_mount_checkoption(char *line, char *keyword, int full); +char *cu_mount_checkoption(char *line, const char *keyword, int full); /* DESCRIPTION The cu_mount_checkoption() function is a replacement of