summaryrefslogtreecommitdiff
path: root/plugins/pmu-sys
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/pmu-sys
parent68740373619824398f0c16c39ca12ed8ac1e275c (diff)
downloadmate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.bz2
mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.xz
Fix Compilation Warning
Diffstat (limited to 'plugins/pmu-sys')
-rw-r--r--plugins/pmu-sys/pmu-sys-plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/pmu-sys/pmu-sys-plugin.c b/plugins/pmu-sys/pmu-sys-plugin.c
index 5a47aea..46f8f2b 100644
--- a/plugins/pmu-sys/pmu-sys-plugin.c
+++ b/plugins/pmu-sys/pmu-sys-plugin.c
@@ -116,6 +116,7 @@ static void pmu_sys_plugin_test_sensor(GList **sensors, const gchar *path) {
}
/* to be called to setup for sys sensors */
+static
GList *pmu_sys_plugin_init(void) {
GList *sensors = NULL;
/* call function to recursively look for sensors
@@ -127,6 +128,7 @@ GList *pmu_sys_plugin_init(void) {
/* returns the value of the sensor_list at the given iter, or if an
error occurs, instatiates error with an error message */
+static
gdouble pmu_sys_plugin_get_sensor_value(const gchar *path,
const gchar *id,
SensorType type,