diff options
| author | Thomas Haller <thaller@redhat.com> | 2019-08-07 14:50:56 +0200 |
|---|---|---|
| committer | Thomas Haller <thaller@redhat.com> | 2019-08-07 14:51:30 +0200 |
| commit | e5961ffaf11956cf2ade4e72ac694dd29a986bdd (patch) | |
| tree | 6f346775dcbc52106ad77b853099eada59c1eeb0 /lib | |
| parent | 4ff7c66996a6a61b0de00dbf137af2e8fdc3d10a (diff) | |
| download | platform_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.c | 2 |
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 |
