From: Daniel Wagner <daniel.wag...@bmw-carit.de>

---
 plugins/vpn.c |    2 +-
 plugins/vpn.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/plugins/vpn.c b/plugins/vpn.c
index 278e0ea..c911d39 100644
--- a/plugins/vpn.c
+++ b/plugins/vpn.c
@@ -323,7 +323,7 @@ static int vpn_disconnect(struct connman_provider *provider)
        name = connman_provider_get_driver_name(provider);
        vpn_driver_data = g_hash_table_lookup(driver_hash, name);
        if (vpn_driver_data->vpn_driver->disconnect)
-               vpn_driver_data->vpn_driver->disconnect();
+               vpn_driver_data->vpn_driver->disconnect(provider);
 
        if (data->watch != 0)
                connman_rtnl_remove_watch(data->watch);
diff --git a/plugins/vpn.h b/plugins/vpn.h
index 7f10150..762698e 100644
--- a/plugins/vpn.h
+++ b/plugins/vpn.h
@@ -32,7 +32,7 @@ struct vpn_driver {
        int (*notify) (DBusMessage *msg, struct connman_provider *provider);
        int (*connect) (struct connman_provider *provider,
                        struct connman_task *task, const char *if_name);
-       void (*disconnect) (void);
+       void (*disconnect) (struct connman_provider *provider);
 };
 
 int vpn_register(const char *name, struct vpn_driver *driver,
-- 
1.7.2.3

_______________________________________________
connman mailing list
connman@connman.net
http://lists.connman.net/listinfo/connman

Reply via email to