]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
doc: fix error in core documentation for nl_cache_mngr_alloc()
authorThomas Haller <thaller@redhat.com>
Tue, 17 Jun 2014 16:42:48 +0000 (18:42 +0200)
committerThomas Haller <thaller@redhat.com>
Tue, 17 Jun 2014 16:42:48 +0000 (18:42 +0200)
Signed-off-by: Thomas Haller <thaller@redhat.com>
doc/core.txt

index 1625575b43d8f7cfc584e3c17025adefe7b3b5a3..042369d302c17d68abef4bc05096141cd351ee15 100644 (file)
@@ -2709,7 +2709,7 @@ struct nl_cache_mngr *mngr;
 
 // Allocate a new cache manager for RTNETLINK and automatically
 // provide the caches added to the manager.
-mngr = nl_cache_mngr_alloc(NETLINK_ROUTE, NL_AUTO_PROVIDE);
+err = nl_cache_mngr_alloc(NULL, NETLINK_ROUTE, NL_AUTO_PROVIDE, &mngr);
 ----
 
 .Keep track of a cache