Code

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 36d8d640b3176ca28e91680c8bd9c2db3eaf8bfd..014620c8c29fc014d95eba01b4d1a38983219fea 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 7518188dee7e048793802fac33f6824a90d3e434..78bb7334a374ce6ffa5177cad5f4f61a7be545cc 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