From: Jo-Philipp Wich Date: Thu, 24 Feb 2011 00:36:56 +0000 (+0000) Subject: [packages] l2tpv3tun: fix whitespace mangled patch X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=d46ae970ae8b7fc1ebfe4450b95ac521bf8d6a7a;p=openwrt%2Fsvn-archive%2Farchive.git [packages] l2tpv3tun: fix whitespace mangled patch SVN-Revision: 25687 --- diff --git a/net/l2tpv3tun/patches/100-nl_handle_alloc.patch b/net/l2tpv3tun/patches/100-nl_handle_alloc.patch index 6ed228887b..f245468b0e 100644 --- a/net/l2tpv3tun/patches/100-nl_handle_alloc.patch +++ b/net/l2tpv3tun/patches/100-nl_handle_alloc.patch @@ -1,25 +1,23 @@ -Index: l2tpv3tun-0.2/main.c -=================================================================== ---- l2tpv3tun-0.2.orig/main.c -+++ l2tpv3tun-0.2/main.c +--- a/main.c ++++ b/main.c @@ -100,7 +100,7 @@ struct l2tp_data { }; - + /* netlink socket */ -static struct nl_handle *nl_sock; +static struct nl_sock *nl_sock; static int nl_family; - + /***************************************************************************** @@ -788,9 +788,9 @@ static int do_show(int argc, char **argv - + int do_ipl2tp(int argc, char **argv) { -- nl_sock = nl_handle_alloc(); -+ nl_sock = nl_socket_alloc(); - if (!nl_sock) { -- perror("nl_handle_alloc"); -+ perror("nl_socket_alloc"); - return 1; - } - +- nl_sock = nl_handle_alloc(); ++ nl_sock = nl_socket_alloc(); + if (!nl_sock) { +- perror("nl_handle_alloc"); ++ perror("nl_socket_alloc"); + return 1; + } +