doc: Fix incorrect nl_socket_add_memberships() example

Reported by: Andrew Collins <bsderandrew@gmail.com>
Signed-off-by: Thomas Graf <tgraf@redhat.com>
This commit is contained in:
Thomas Graf 2012-03-26 14:02:25 +02:00
parent 965fd78042
commit 7d47666eb3

View 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