diff options
Diffstat (limited to 'vpn')
-rw-r--r-- | vpn/plugins/wireguard.c | 2 | ||||
-rwxr-xr-x | vpn/vpn-ipconfig.c | 2 | ||||
-rwxr-xr-x | vpn/vpn-rtnl.c | 2 | ||||
-rwxr-xr-x | vpn/vpn.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/vpn/plugins/wireguard.c b/vpn/plugins/wireguard.c index 7541dd6e..ec57c93d 100644 --- a/vpn/plugins/wireguard.c +++ b/vpn/plugins/wireguard.c @@ -243,7 +243,7 @@ static char *get_ifname(void) for (i = 0; i < 256; i++) { data.ifname = g_strdup_printf("wg%d", i); data.found = false; - __vpn_ipconfig_foreach(ifname_check_cb, &data); + vpn_ipconfig_foreach(ifname_check_cb, &data); if (!data.found) return data.ifname; diff --git a/vpn/vpn-ipconfig.c b/vpn/vpn-ipconfig.c index c096fa37..c4fa5482 100755 --- a/vpn/vpn-ipconfig.c +++ b/vpn/vpn-ipconfig.c @@ -108,7 +108,7 @@ unsigned int __vpn_ipconfig_get_flags_from_index(int index) return ipdevice->flags; } -void __vpn_ipconfig_foreach(void (*function) (int index, +void vpn_ipconfig_foreach(void (*function) (int index, void *user_data), void *user_data) { GList *list, *keys; diff --git a/vpn/vpn-rtnl.c b/vpn/vpn-rtnl.c index 6ddfd832..295c05ce 100755 --- a/vpn/vpn-rtnl.c +++ b/vpn/vpn-rtnl.c @@ -184,7 +184,7 @@ int vpn_rtnl_register(struct vpn_rtnl *rtnl) rtnl_list = g_slist_insert_sorted(rtnl_list, rtnl, compare_priority); - __vpn_ipconfig_foreach(trigger_rtnl, rtnl); + vpn_ipconfig_foreach(trigger_rtnl, rtnl); return 0; } @@ -35,7 +35,7 @@ struct vpn_ipconfig; struct connman_ipaddress *__vpn_ipconfig_get_address(struct vpn_ipconfig *ipconfig); unsigned short __vpn_ipconfig_get_type_from_index(int index); unsigned int __vpn_ipconfig_get_flags_from_index(int index); -void __vpn_ipconfig_foreach(void (*function) (int index, +void vpn_ipconfig_foreach(void (*function) (int index, void *user_data), void *user_data); void __vpn_ipconfig_set_local(struct vpn_ipconfig *ipconfig, const char *address); |