summaryrefslogtreecommitdiff
path: root/plugins/libsensors
diff options
context:
space:
mode:
authorzhuyaliang <[email protected]>2023-04-22 12:56:21 +0800
committerraveit65 <[email protected]>2023-04-28 00:38:32 +0200
commit6148063f860bf23d970199fd74a9efdf547be834 (patch)
treeb5756324ac8fae1b79ba402d4d887989e6314c8b /plugins/libsensors
parent68740373619824398f0c16c39ca12ed8ac1e275c (diff)
downloadmate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.bz2
mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.xz
Fix Compilation Warning
Diffstat (limited to 'plugins/libsensors')
-rw-r--r--plugins/libsensors/libsensors-plugin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/libsensors/libsensors-plugin.c b/plugins/libsensors/libsensors-plugin.c
index b95b888..ebe8b02 100644
--- a/plugins/libsensors/libsensors-plugin.c
+++ b/plugins/libsensors/libsensors-plugin.c
@@ -230,11 +230,11 @@ static void check_sensor_with_data(GList **sensors,
static GList *libsensors_plugin_get_sensors(void) {
const sensors_chip_name *chip_name;
- int i;
GList *sensors = NULL;
#if SENSORS_API_VERSION < 0x400
FILE *file;
+ int i;
g_debug("%s: using libsensors version < 4", __FUNCTION__);
/* try to open config file, otherwise try alternate config
@@ -281,7 +281,6 @@ static GList *libsensors_plugin_get_sensors(void) {
return sensors;
}
- i = 0;
while ((chip_name = sensors_get_detected_chips(NULL, &nr))) {
char *chip_name_string, *label;