summaryrefslogtreecommitdiffstats
path: root/doc/core.txt
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2014-01-08 16:23:05 (GMT)
committerThomas Haller <thaller@redhat.com>2014-01-21 18:16:55 (GMT)
commit894acf798da0e6f214b637e0d35dd4cec0a7bb6c (patch)
treecaaf611eecde48fa7c9597bf8790fa34b762192c /doc/core.txt
parent815e192db64ef6041b12f50648a21d59c2f84381 (diff)
downloadlibnl-894acf798da0e6f214b637e0d35dd4cec0a7bb6c.zip
libnl-894acf798da0e6f214b637e0d35dd4cec0a7bb6c.tar.gz
libnl-894acf798da0e6f214b637e0d35dd4cec0a7bb6c.tar.bz2
doc: fix typo in documentation
Also fix typo in source code comment. Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'doc/core.txt')
-rw-r--r--doc/core.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/core.txt b/doc/core.txt
index 1e951d0..3dff70f 100644
--- a/doc/core.txt
+++ b/doc/core.txt
@@ -2526,7 +2526,7 @@ Message processing callback functions are set with nl_cb_set():
#include <netlink/handlers.h>
int nl_cb_set(struct nl_cb *cb, enum nl_cb_type type, enum nl_cb_kind kind,
- nl_recvmsg_msg_cb_t func, void *cb);
+ nl_recvmsg_msg_cb_t func, void *arg);
typedef int (*nl_recvmsg_msg_cb_t)(struct nl_msg *msg, void *arg);
--------
@@ -2539,7 +2539,7 @@ A special function prototype is used for the error message callback hook:
--------
#include <netlink/handlers.h>
-int nl_cb_err(struct nl_cb *cb, enum nl_cb_kind kind, nl_recvmsg_err_cb_t func, void * arg);
+int nl_cb_err(struct nl_cb *cb, enum nl_cb_kind kind, nl_recvmsg_err_cb_t func, void *arg);
typedef int(* nl_recvmsg_err_cb_t)(struct sockaddr_nl *nla, struct nlmsgerr *nlerr, void *arg);
--------