From 7d47666eb3c414feb8901970d35b96461214c2bf Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Mon, 26 Mar 2012 14:02:25 +0200 Subject: [PATCH] doc: Fix incorrect nl_socket_add_memberships() example Reported by: Andrew Collins Signed-off-by: Thomas Graf --- doc/core.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/core.txt b/doc/core.txt index 1bc5a74..3dda08e 100644 --- a/doc/core.txt +++ b/doc/core.txt @@ -593,7 +593,7 @@ nl_socket_modify_cb(sk, NL_CB_VALID, NL_CB_CUSTOM, my_func, NULL); nl_connect(sk, NETLINK_ROUTE); /* Subscribe to link notifications group */ -nl_socket_add_memberships(sk, RTNLGRP_LINK); +nl_socket_add_memberships(sk, RTNLGRP_LINK, 0); /* * Start receiving messages. The function nl_recvmsgs_default() will block