mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-09-20 00:21:29 +00:00
libnm: NMVpnPluginOld: return service name as const string in need_secrets()
This commit is contained in:
parent
4bab4294a6
commit
dbf1794070
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue