X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fthermal.c;h=1ed56174a27b69494f7c4e1b592cfdafcf0f22c7;hb=5ebc182261321f0781f38d8645bfc7c74353434c;hp=959fec64e9a389c77af1e05a5aad0056c201a198;hpb=d486225f89ea52d8ed2b4242eba2ad94c409f837;p=collectd.git diff --git a/src/thermal.c b/src/thermal.c index 959fec64..1ed56174 100644 --- a/src/thermal.c +++ b/src/thermal.c @@ -21,9 +21,9 @@ #include "collectd.h" -#include "common.h" #include "plugin.h" -#include "utils_ignorelist.h" +#include "utils/common/common.h" +#include "utils/ignorelist/ignorelist.h" #if !KERNEL_LINUX #error "This module is for Linux only." @@ -103,7 +103,7 @@ static int thermal_procfs_device_read(const char __attribute__((unused)) * dir, if ((len < 0) || ((size_t)len >= sizeof(filename))) return -1; - len = (ssize_t)read_file_contents(filename, data, sizeof(data)); + len = (ssize_t)read_text_file_contents(filename, data, sizeof(data)); if ((len > 0) && ((size_t)len > sizeof(str_temp)) && (data[--len] == '\n') && (!strncmp(data, str_temp, sizeof(str_temp) - 1))) { char *endptr = NULL;