libnm: NMVpnPluginOld: return service name as const string in need_secrets()

This commit is contained in:
Jiří Klimeš 2015-05-19 14:40:10 +02:00
parent 4bab4294a6
commit dbf1794070
2 changed files with 2 additions and 3 deletions

View file

@ -480,7 +480,7 @@ impl_vpn_plugin_old_need_secrets (NMVpnPluginOld *plugin,
gpointer user_data)
{
NMConnection *connection;
char *setting_name;
const char *setting_name;
gboolean needed;
GError *error = NULL;
@ -511,7 +511,6 @@ impl_vpn_plugin_old_need_secrets (NMVpnPluginOld *plugin,
g_assert (setting_name);
g_dbus_method_invocation_return_value (context,
g_variant_new ("(s)", setting_name));
g_free (setting_name);
} else {
/* No secrets required */
g_dbus_method_invocation_return_value (context,

View file

@ -73,7 +73,7 @@ typedef struct {
gboolean (*need_secrets) (NMVpnPluginOld *plugin,
NMConnection *connection,
char **setting_name,
const char **setting_name,
GError **error);
gboolean (*disconnect) (NMVpnPluginOld *plugin,