X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Futils_mount.c;h=752d2e158a597e2b3b9e893d57c2d8267d1c71de;hb=4ea7aebc3f05d082f64a62c679f414cf7cb0e631;hp=d303677d4e6b0f88b2153fcd85b17a5ab50b7f3a;hpb=865a6c83250e3d4381596a0d937df31d563f97c6;p=collectd.git diff --git a/src/utils_mount.c b/src/utils_mount.c index d303677d..752d2e15 100644 --- a/src/utils_mount.c +++ b/src/utils_mount.c @@ -31,10 +31,13 @@ #define XFS_SUPER_MAGIC2_STR "BSFX" #endif -#include "common.h" -#include "plugin.h" +#include "collectd.h" #include "utils_mount.h" +#include "common.h" /* sstrncpy() et alii */ +#include "plugin.h" /* ERROR() macro */ + + #if HAVE_GETVFSSTAT # if HAVE_SYS_TYPES_H # include @@ -760,7 +763,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; @@ -801,7 +804,7 @@ cu_mount_checkoption(char *line, char *keyword, int full) } /* char *cu_mount_checkoption(char *line, char *keyword, int full) */ char * -cu_mount_getoptionvalue(char *line, char *keyword) +cu_mount_getoptionvalue(char *line, const char *keyword) { char *r; @@ -823,7 +826,7 @@ cu_mount_getoptionvalue(char *line, char *keyword) } } return r; -} /* char *cu_mount_getoptionvalue(char *line, char *keyword) */ +} /* char *cu_mount_getoptionvalue(char *line, const char *keyword) */ int cu_mount_type(const char *type)