diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/acpi/acpi-plugin.c | 1 | ||||
-rw-r--r-- | plugins/dummy/dummy-plugin.c | 5 | ||||
-rw-r--r-- | plugins/i2c-proc/i2c-proc-plugin.c | 1 | ||||
-rw-r--r-- | plugins/i2c-sys/i2c-sys-plugin.c | 1 | ||||
-rw-r--r-- | plugins/i2c-sys/i2c-sys-plugin.h | 1 | ||||
-rw-r--r-- | plugins/ibm-acpi/ibm-acpi-plugin.c | 2 | ||||
-rw-r--r-- | plugins/libsensors/libsensors-plugin.c | 1 | ||||
-rw-r--r-- | plugins/mbmon/mbmon-plugin.c | 1 | ||||
-rw-r--r-- | plugins/nvidia/nvidia-plugin.c | 1 | ||||
-rw-r--r-- | plugins/omnibook/omnibook-plugin.c | 1 | ||||
-rw-r--r-- | plugins/omnibook/omnibook-plugin.h | 1 | ||||
-rw-r--r-- | plugins/pmu-sys/pmu-sys-plugin.c | 2 | ||||
-rw-r--r-- | plugins/smu-sys/smu-sys-plugin.c | 2 | ||||
-rw-r--r-- | plugins/sonypi/sonypi-plugin.c | 1 | ||||
-rw-r--r-- | plugins/udisks2/udisks2-plugin.c | 9 |
15 files changed, 0 insertions, 30 deletions
diff --git a/plugins/acpi/acpi-plugin.c b/plugins/acpi/acpi-plugin.c index 3f3cb07..add40a5 100644 --- a/plugins/acpi/acpi-plugin.c +++ b/plugins/acpi/acpi-plugin.c @@ -43,7 +43,6 @@ static void acpi_plugin_add_sensor(GList **sensors, const gchar *path) { gchar *dirname; gchar *id; - dirname = g_path_get_dirname(path); id = g_path_get_basename(dirname); g_free(dirname); diff --git a/plugins/dummy/dummy-plugin.c b/plugins/dummy/dummy-plugin.c index ed3ae6b..9dfd014 100644 --- a/plugins/dummy/dummy-plugin.c +++ b/plugins/dummy/dummy-plugin.c @@ -20,7 +20,6 @@ /* Dummy plugin to be able to test msa in a VM */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ @@ -29,7 +28,6 @@ #include <stdlib.h> #include "dummy-plugin.h" - // remove // from next line for syslog debug //#define DPDBG 1 @@ -37,10 +35,8 @@ #include <syslog.h> #endif - const gchar *plugin_name = "dummy"; - static void dummy_plugin_get_sensors(GList **sensors) { /* dummy HDD temp sensor */ @@ -96,7 +92,6 @@ static gdouble dummy_plugin_get_sensor_value(const gchar *path, } - /* API functions */ const gchar *sensors_applet_plugin_name(void) { return plugin_name; diff --git a/plugins/i2c-proc/i2c-proc-plugin.c b/plugins/i2c-proc/i2c-proc-plugin.c index 379fdaa..1ed81fe 100644 --- a/plugins/i2c-proc/i2c-proc-plugin.c +++ b/plugins/i2c-proc/i2c-proc-plugin.c @@ -119,7 +119,6 @@ static void i2c_proc_plugin_test_sensor(GList **sensors, const gchar *path) { } - /* to be called to setup for proc sensors */ static GList *i2c_proc_plugin_init(void) { GList *sensors = NULL; diff --git a/plugins/i2c-sys/i2c-sys-plugin.c b/plugins/i2c-sys/i2c-sys-plugin.c index 4232283..b39ede4 100644 --- a/plugins/i2c-sys/i2c-sys-plugin.c +++ b/plugins/i2c-sys/i2c-sys-plugin.c @@ -135,7 +135,6 @@ if ((g_str_has_suffix(filename, "_input") && g_free(filename); } - /* to be called to setup for sys sensors */ static GList *i2c_sys_plugin_init(void) { GList *sensors = NULL; diff --git a/plugins/i2c-sys/i2c-sys-plugin.h b/plugins/i2c-sys/i2c-sys-plugin.h index a3941d3..d1e5ece 100644 --- a/plugins/i2c-sys/i2c-sys-plugin.h +++ b/plugins/i2c-sys/i2c-sys-plugin.h @@ -22,5 +22,4 @@ #include <sensors-applet/sensors-applet-plugin.h> - #endif /* I2C_SYS_PLUGIN_H*/ diff --git a/plugins/ibm-acpi/ibm-acpi-plugin.c b/plugins/ibm-acpi/ibm-acpi-plugin.c index 24972d0..9bf3615 100644 --- a/plugins/ibm-acpi/ibm-acpi-plugin.c +++ b/plugins/ibm-acpi/ibm-acpi-plugin.c @@ -43,13 +43,11 @@ const gchar *plugin_name = "ibm-acpi"; #define BAT1 "BAT1" #define FAN "FAN" - enum { IBM_ACPI_FILE_OPEN_ERROR, IBM_ACPI_FILE_READ_ERROR }; - static void ibm_acpi_plugin_setup_manually(GList **sensors) { if (g_file_test(IBM_ACPI_TEMPERATURE_FILE, G_FILE_TEST_EXISTS)) { gchar *label; diff --git a/plugins/libsensors/libsensors-plugin.c b/plugins/libsensors/libsensors-plugin.c index b587933..b95b888 100644 --- a/plugins/libsensors/libsensors-plugin.c +++ b/plugins/libsensors/libsensors-plugin.c @@ -435,7 +435,6 @@ static gdouble libsensors_plugin_get_sensor_value(const gchar *path, return result; } - static GList *libsensors_plugin_init(void) { GError *err = NULL; diff --git a/plugins/mbmon/mbmon-plugin.c b/plugins/mbmon/mbmon-plugin.c index 1bbf3fc..e5f7c20 100644 --- a/plugins/mbmon/mbmon-plugin.c +++ b/plugins/mbmon/mbmon-plugin.c @@ -211,7 +211,6 @@ static GList *mbmon_plugin_init(void) { return sensors; } - /* returns the value of the sensor_list at the given iter, or if an error occurs, instatiates error with an error message */ static gdouble mbmon_plugin_get_sensor_value(const gchar *path, diff --git a/plugins/nvidia/nvidia-plugin.c b/plugins/nvidia/nvidia-plugin.c index 0aaa649..2643a2a 100644 --- a/plugins/nvidia/nvidia-plugin.c +++ b/plugins/nvidia/nvidia-plugin.c @@ -220,4 +220,3 @@ gdouble sensors_applet_plugin_get_sensor_value(const gchar *path, return nvidia_plugin_get_sensor_value(path, id, type, error); } - diff --git a/plugins/omnibook/omnibook-plugin.c b/plugins/omnibook/omnibook-plugin.c index 4e237b9..5d6ff91 100644 --- a/plugins/omnibook/omnibook-plugin.c +++ b/plugins/omnibook/omnibook-plugin.c @@ -53,7 +53,6 @@ static void omnibook_plugin_setup_manually(GList **sensors) { } } - /* to be called to setup for sys sensors */ static GList *omnibook_plugin_init(void) { GList *sensors = NULL; diff --git a/plugins/omnibook/omnibook-plugin.h b/plugins/omnibook/omnibook-plugin.h index e5caf07..179f236 100644 --- a/plugins/omnibook/omnibook-plugin.h +++ b/plugins/omnibook/omnibook-plugin.h @@ -22,5 +22,4 @@ #include <sensors-applet/sensors-applet-plugin.h> - #endif /* OMNIBOOK_PLUGIN_H*/ diff --git a/plugins/pmu-sys/pmu-sys-plugin.c b/plugins/pmu-sys/pmu-sys-plugin.c index 6585ddf..1cac7e9 100644 --- a/plugins/pmu-sys/pmu-sys-plugin.c +++ b/plugins/pmu-sys/pmu-sys-plugin.c @@ -42,7 +42,6 @@ const gchar *plugin_name = "pmu-sys"; #define TEMPERATURE "_temperature" #define FAN_SPEED "_fan_speed" - enum { PMU_SYS_DEVICE_FILE_OPEN_ERROR, PMU_SYS_DEVICE_FILE_READ_ERROR @@ -118,7 +117,6 @@ static void pmu_sys_plugin_test_sensor(GList **sensors, const gchar *path) { g_free(filename); } - /* to be called to setup for sys sensors */ GList *pmu_sys_plugin_init(void) { GList *sensors = NULL; diff --git a/plugins/smu-sys/smu-sys-plugin.c b/plugins/smu-sys/smu-sys-plugin.c index 22f97f0..fbf3ff6 100644 --- a/plugins/smu-sys/smu-sys-plugin.c +++ b/plugins/smu-sys/smu-sys-plugin.c @@ -40,7 +40,6 @@ const gchar *plugin_name = "smu-sys"; #define TEMPERATURE "-temp" #define FAN_SPEED "-fan" - enum { SMU_SYS_DEVICE_FILE_OPEN_ERROR, SMU_SYS_DEVICE_FILE_READ_ERROR @@ -110,7 +109,6 @@ static void smu_sys_plugin_test_sensor(GList **sensors, const gchar *path) { g_free(filename); } - /* to be called to setup for sys sensors */ GList *smu_sys_plugin_init(void) { GList *sensors = NULL; diff --git a/plugins/sonypi/sonypi-plugin.c b/plugins/sonypi/sonypi-plugin.c index e37eaf1..8a69cf4 100644 --- a/plugins/sonypi/sonypi-plugin.c +++ b/plugins/sonypi/sonypi-plugin.c @@ -52,7 +52,6 @@ enum { SONYPI_DEVICE_FILE_READ_ERROR }; - GList *sonypi_plugin_init(void) { int fd; GList *sensors = NULL; diff --git a/plugins/udisks2/udisks2-plugin.c b/plugins/udisks2/udisks2-plugin.c index f8a0c41..39d2d9a 100644 --- a/plugins/udisks2/udisks2-plugin.c +++ b/plugins/udisks2/udisks2-plugin.c @@ -31,7 +31,6 @@ https://developer.gnome.org/gio/stable/index.html */ - #ifdef HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ @@ -40,7 +39,6 @@ https://developer.gnome.org/gio/stable/index.html #include <gio/gio.h> #include "udisks2-plugin.h" - /* remove // from next line for syslog debug */ //#define UD2PD 1 @@ -48,7 +46,6 @@ https://developer.gnome.org/gio/stable/index.html #include <syslog.h> #endif - #define UDISKS2_BUS_NAME "org.freedesktop.UDisks2" #define UDISKS2_INTERFACE_NAME "org.freedesktop.DBus.ObjectManager" #define UDISKS2_DEVICE_INTERFACE_NAME "org.freedesktop.UDisks2.Drive" @@ -57,7 +54,6 @@ https://developer.gnome.org/gio/stable/index.html #define UDISKS2_PROPERTIES_INTERFACE "org.freedesktop.DBus.Properties" #define UDISKS2_OBJECT_PATH "/org/freedesktop/UDisks2" - /* Info about a single sensor */ typedef struct _DevInfo { gchar *path; @@ -67,7 +63,6 @@ typedef struct _DevInfo { GError *error; } DevInfo; - const gchar *plugin_name = "udisks2"; /* a container for the devices found to have smart enabled */ @@ -76,7 +71,6 @@ GHashTable *devices = NULL; /* This is a global variable for convenience */ GDBusConnection *connection = NULL; - static void update_device (DevInfo *info) { GError *error = NULL; GVariant *tempgvar = NULL; @@ -301,7 +295,6 @@ syslog(LOG_ERR, "key value: %s", key); propdict = g_variant_lookup_value (value, UDISKS2_DEVICE_INTERFACE_NAME, G_VARIANT_TYPE_DICTIONARY); propdict2 = g_variant_lookup_value (value, UDISKS2_DEVICE_INTERFACE2_NAME, G_VARIANT_TYPE_DICTIONARY); - /* do we have the right ifname keys? */ if ((NULL != propdict) && (NULL != propdict2)) { @@ -402,7 +395,6 @@ syslog(LOG_ERR, "b4 free3"); } /* end of while loop */ - g_variant_unref (managed_objects); g_clear_object (&proxy); if (NULL == devices) { @@ -435,7 +427,6 @@ static gdouble udisks2_plugin_get_sensor_value (const gchar *path, return info->temp; } - /* API functions */ const gchar *sensors_applet_plugin_name (void) { return plugin_name; |