summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2019-08-07 14:50:56 +0200
committerThomas Haller <thaller@redhat.com>2019-08-07 14:51:30 +0200
commite5961ffaf11956cf2ade4e72ac694dd29a986bdd (patch)
tree6f346775dcbc52106ad77b853099eada59c1eeb0 /lib
parent4ff7c66996a6a61b0de00dbf137af2e8fdc3d10a (diff)
downloadplatform_external_libnl-e5961ffaf11956cf2ade4e72ac694dd29a986bdd.tar.gz
platform_external_libnl-e5961ffaf11956cf2ade4e72ac694dd29a986bdd.tar.bz2
platform_external_libnl-e5961ffaf11956cf2ade4e72ac694dd29a986bdd.zip
doc: fix typos in example in documentation
https://github.com/thom311/libnl/issues/210
Diffstat (limited to 'lib')
-rw-r--r--lib/genl/genl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/genl/genl.c b/lib/genl/genl.c
index c79fd24..2299baa 100644
--- a/lib/genl/genl.c
+++ b/lib/genl/genl.c
@@ -178,7 +178,7 @@ int genlmsg_validate(struct nlmsghdr *nlh, int hdrlen, int maxtype,
* @code
* struct nlattr *attrs[MY_TYPE_MAX+1];
*
- * if ((err = genlsmg_parse(nlmsg_nlh(msg), sizeof(struct my_hdr), attrs,
+ * if ((err = genlmsg_parse(nlmsg_hdr(msg), sizeof(struct my_hdr), attrs,
* MY_TYPE_MAX, attr_policy)) < 0)
* // ERROR
* @endcode