mirror of
https://github.com/openharmony/third_party_libnl.git
synced 2026-07-19 20:13:35 -04:00
doc: fix typos in example in documentation
https://github.com/thom311/libnl/issues/210
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user