cu_mount_checkoption: mark keyword as const
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 13:10:53 +0000 (14:10 +0100)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Mar 2016 13:10:53 +0000 (14:10 +0100)
src/utils_mount.c
src/utils_mount.h

index 36d8d64..014620c 100644 (file)
@@ -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;
index 7518188..78bb733 100644 (file)
@@ -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