From 6d481437322ab7caf095d7ed28895fa2b0a3abce Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 31 May 2018 15:21:00 +0200 Subject: [PATCH] utils_mount.c: fix implicit conversion CC src/utils_mount.lo src/utils_mount.c:710:7: warning: implicit conversion loses integer precision: 'unsigned long' to 'int' [-Wshorten-64-to-32] l = strlen(keyword); ~ ^~~~~~~~~~~~~~~ 1 warning generated. --- src/utils_mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_mount.c b/src/utils_mount.c index b8af367e..e430cc9c 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -688,7 +688,7 @@ void cu_mount_freelist(cu_mount_t *list) { char *cu_mount_checkoption(char *line, const char *keyword, int full) { char *line2, *l2, *p1, *p2; - int l; + size_t l; if (line == NULL || keyword == NULL) { return NULL; -- 2.11.0