summaryrefslogtreecommitdiff
path: root/plugins/smu-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/smu-sys
parent68740373619824398f0c16c39ca12ed8ac1e275c (diff)
downloadmate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.bz2
mate-sensors-applet-6148063f860bf23d970199fd74a9efdf547be834.tar.xz
Fix Compilation Warning
Diffstat (limited to 'plugins/smu-sys')
-rw-r--r--plugins/smu-sys/smu-sys-plugin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/smu-sys/smu-sys-plugin.c b/plugins/smu-sys/smu-sys-plugin.c
index f5940fd..d9e530d 100644
--- a/plugins/smu-sys/smu-sys-plugin.c
+++ b/plugins/smu-sys/smu-sys-plugin.c
@@ -108,7 +108,7 @@ static void smu_sys_plugin_test_sensor(GList **sensors, const gchar *path) {
}
/* to be called to setup for sys sensors */
-GList *smu_sys_plugin_init(void) {
+static GList *smu_sys_plugin_init(void) {
GList *sensors = NULL;
/* call function to recursively look for sensors
@@ -120,6 +120,7 @@ GList *smu_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 smu_sys_plugin_get_sensor_value(const gchar *path,
const gchar *id,
SensorType type,