diff options
author | rbuj <[email protected]> | 2020-12-21 15:39:17 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-28 17:22:27 +0100 |
commit | 9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3 (patch) | |
tree | 09b866afe25a5010e01b5f13b8d353f0d1a27bb0 /sensors-applet/sensors-applet-plugins.c | |
parent | 80dffdc6078fd319c5f31248f3896b192d773a60 (diff) | |
download | mate-sensors-applet-9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3.tar.bz2 mate-sensors-applet-9bc69fd715b8bb45c0c45a27c71ce2cc49b0c7d3.tar.xz |
Remove cppcheck warnings about the variable scope can be reduced
Diffstat (limited to 'sensors-applet/sensors-applet-plugins.c')
-rw-r--r-- | sensors-applet/sensors-applet-plugins.c | 4 |
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 && |