From 0747827697f794117896501d6c8357c938730ce3 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 5 Mar 2016 14:10:53 +0100 Subject: [PATCH] cu_mount_checkoption: mark keyword as const --- src/utils_mount.c | 2 +- src/utils_mount.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2