summaryrefslogtreecommitdiff
path: root/sensors-applet/sensors-applet-plugins.c
diff options
context:
space:
mode:
Diffstat (limited to 'sensors-applet/sensors-applet-plugins.c')
-rw-r--r--sensors-applet/sensors-applet-plugins.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sensors-applet/sensors-applet-plugins.c b/sensors-applet/sensors-applet-plugins.c
index e90895a..c2e406c 100644
--- a/sensors-applet/sensors-applet-plugins.c
+++ b/sensors-applet/sensors-applet-plugins.c
@@ -39,13 +39,13 @@ static void load_all_plugins(SensorsApplet *sensors_applet, const gchar *path) {
/* try and open plugin */
gchar *plugin_file;
void *handle;
- SensorsAppletPluginName name_fn;
SensorsAppletPluginInit init_fn;
- SensorsAppletPluginGetSensorValue get_value_fn;
plugin_file = g_strdup_printf("%s/%s", path, file);
g_debug("found %s in plugin directory", plugin_file);
if ((handle = dlopen(plugin_file, RTLD_NOW)) != NULL) {
+ SensorsAppletPluginName name_fn;
+ SensorsAppletPluginGetSensorValue get_value_fn;
if ((name_fn = dlsym(handle, "sensors_applet_plugin_name")) != NULL &&
(init_fn = dlsym(handle, "sensors_applet_plugin_init")) != NULL &&