diff options
author | Richard Hitt <rbh00@localhost.localdomain> | 2013-05-17 21:51:34 -0700 |
---|---|---|
committer | Richard Hitt <rbh00@localhost.localdomain> | 2013-05-17 21:51:34 -0700 |
commit | 73badc67ff32778c0803912569f615fd529c52a3 (patch) | |
tree | 33469fe676a84879a34757db0466717c58d95fe5 /plugins | |
parent | 1181b5621132876b3e2f635e888365fe775154df (diff) |
Fix warning from hwmon.c in plugins/sysinfo
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/sysinfo/hwmon.c | 2 | ||||
-rw-r--r-- | plugins/sysinfo/parse.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/sysinfo/hwmon.c b/plugins/sysinfo/hwmon.c index 3cc2fb8d..389244ac 100644 --- a/plugins/sysinfo/hwmon.c +++ b/plugins/sysinfo/hwmon.c @@ -34,6 +34,7 @@ int hwmon_chip_present() return 0; } +#if 0 void get_hwmon_chip_name(char *name) { char *position, buffer[bsize]; @@ -47,6 +48,7 @@ void get_hwmon_chip_name(char *name) fclose(fp); } } +#endif void get_hwmon_temp(unsigned int *value, unsigned int *sensor) { diff --git a/plugins/sysinfo/parse.c b/plugins/sysinfo/parse.c index 76002900..ed6ba146 100644 --- a/plugins/sysinfo/parse.c +++ b/plugins/sysinfo/parse.c @@ -438,8 +438,10 @@ int xs_parse_hwmon_chip(char *chip) { if (!hwmon_chip_present()) return 1; +#if 0 else get_hwmon_chip_name(chip); +#endif return 0; } |