]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
utils_mount.c: fix implicit conversion
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:21:00 +0000 (15:21 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Thu, 31 May 2018 13:21:00 +0000 (15:21 +0200)
  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

index b8af367e832b6e66959628043ad74ce272632149..e430cc9c2f789b497f1904ed6008d6ad3f4b1fb7 100644 (file)
@@ -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;