[packages] unrar: update to 4.0.7
[openwrt/svn-archive/archive.git] / net / l2tpv3tun / patches / 100-nl_handle_alloc.patch
1 --- a/main.c
2 +++ b/main.c
3 @@ -100,7 +100,7 @@ struct l2tp_data {
4 };
5
6 /* netlink socket */
7 -static struct nl_handle *nl_sock;
8 +static struct nl_sock *nl_sock;
9 static int nl_family;
10
11 /*****************************************************************************
12 @@ -788,9 +788,9 @@ static int do_show(int argc, char **argv
13
14 int do_ipl2tp(int argc, char **argv)
15 {
16 - nl_sock = nl_handle_alloc();
17 + nl_sock = nl_socket_alloc();
18 if (!nl_sock) {
19 - perror("nl_handle_alloc");
20 + perror("nl_socket_alloc");
21 return 1;
22 }
23