doc: fix typos in example in documentation

https://github.com/thom311/libnl/issues/210
This commit is contained in:
Thomas Haller
2019-08-07 14:50:56 +02:00
parent 4ff7c66996
commit e5961ffaf1
+1 -1
View File
@@ -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