X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Futils_mount.c;h=279f8e2f8b8abddab3383eac010b047034cba83c;hb=711f5b6c86f51061c21bedcaa46214a01de0125c;hp=b8af367e832b6e66959628043ad74ce272632149;hpb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;p=collectd.git diff --git a/src/utils_mount.c b/src/utils_mount.c index b8af367e..279f8e2f 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -651,6 +651,8 @@ cu_mount_t *cu_mount_getlist(cu_mount_t **list) { new = cu_mount_gen_getmntent(); #elif HAVE_SEQ_GETMNTENT #error "This version of `getmntent' hat not yet been implemented!" +#elif HAVE_GETMNTENT_R + new = cu_mount_getmntent(); #elif HAVE_ONE_GETMNTENT new = cu_mount_getmntent(); #else @@ -688,7 +690,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;