X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Ffscache.c;h=e875da8de7b6e15ee8e8481e53d6f891284ab7ee;hp=6dc6e72bb8b58fc8f9c812ba5a7d08e627c0c8ae;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=2079ee1517e34de372f58e7e2267ad5c71a8a41f diff --git a/src/fscache.c b/src/fscache.c index 6dc6e72b..e875da8d 100644 --- a/src/fscache.c +++ b/src/fscache.c @@ -21,11 +21,11 @@ #include "collectd.h" +#include "plugin.h" +#include "utils/common/common.h" #include /* a header needed for FILE */ #include /* used for atoi */ #include /* a header needed for scanf function */ -#include "common.h" -#include "plugin.h" #if !KERNEL_LINUX #error "This module only supports the Linux implementation of fscache" @@ -113,7 +113,6 @@ static void fscache_submit(const char *section, const char *name, vl.values = &value; vl.values_len = 1; - sstrncpy(vl.host, hostname_g, sizeof(vl.host)); sstrncpy(vl.plugin, "fscache", sizeof(vl.plugin)); sstrncpy(vl.plugin_instance, section, sizeof(vl.plugin_instance)); sstrncpy(vl.type, "fscache_stat", sizeof(vl.type)); @@ -210,13 +209,11 @@ static int fscache_read(void) { } else { printf("cant open file\n"); - return (-1); + return -1; } - return (0); + return 0; } void module_register(void) { plugin_register_read("fscache", fscache_read); } /* void module_register */ - -/* vim: set sw=4 sts=4 et : */