Commit 7f7207f3 authored by Lubomir Rintel's avatar Lubomir Rintel 🥕
Browse files

libnm/vpn-plugin: avoid bad function pointer type casts

This makes GCC 8.0 unhappy and it is probably right about that -- it's more
difficult to get things wrong when the function prototypes actually match.
parent 422e87ec
......@@ -686,10 +686,18 @@ impl_vpn_plugin_set_failure (NMVPNPlugin *plugin,
/*****************************************************************************/
static void
_emit_quit (gpointer data, gpointer user_data)
{
NMVPNPlugin *plugin = data;
nm_vpn_plugin_emit_quit (plugin);
}
static void
sigterm_handler (int signum)
{
g_slist_foreach (active_plugins, (GFunc) nm_vpn_plugin_emit_quit, NULL);
g_slist_foreach (active_plugins, _emit_quit, NULL);
}
static void
......
......@@ -787,10 +787,18 @@ impl_vpn_plugin_old_set_failure (NMVpnPluginOld *plugin,
/*****************************************************************************/
static void
_emit_quit (gpointer data, gpointer user_data)
{
NMVpnPluginOld *plugin = data;
nm_vpn_plugin_old_emit_quit (plugin);
}
static void
sigterm_handler (int signum)
{
g_slist_foreach (active_plugins, (GFunc) nm_vpn_plugin_old_emit_quit, NULL);
g_slist_foreach (active_plugins, _emit_quit, NULL);
}
static void
......
......@@ -954,10 +954,18 @@ impl_vpn_service_plugin_set_failure (NMVpnServicePlugin *plugin,
/*****************************************************************************/
static void
_emit_quit (gpointer data, gpointer user_data)
{
NMVpnServicePlugin *plugin = data;
nm_vpn_service_plugin_emit_quit (plugin);
}
static void
sigterm_handler (int signum)
{
g_slist_foreach (active_plugins, (GFunc) nm_vpn_service_plugin_emit_quit, NULL);
g_slist_foreach (active_plugins, _emit_quit, NULL);
}
static void
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment