]> granicus.if.org Git - libnl/commitdiff
doc: Fix incorrect nl_socket_add_memberships() example
authorThomas Graf <tgraf@redhat.com>
Mon, 26 Mar 2012 12:02:25 +0000 (14:02 +0200)
committerThomas Graf <tgraf@redhat.com>
Mon, 26 Mar 2012 12:02:25 +0000 (14:02 +0200)
Reported by: Andrew Collins <bsderandrew@gmail.com>
Signed-off-by: Thomas Graf <tgraf@redhat.com>
doc/core.txt

index 1bc5a74aeaedbe040d53f6b898400c66f812bd23..3dda08e0a3999c051d9b7bcd2032a82ffdb29b7f 100644 (file)
@@ -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