From: Ruben Kerkhof Date: Thu, 31 May 2018 13:21:00 +0000 (+0200) Subject: utils_mount.c: fix implicit conversion X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6d481437322ab7caf095d7ed28895fa2b0a3abce;p=collectd.git 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. --- 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;