diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2010-10-22 21:16:44 +0200 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2010-10-22 23:10:54 +0200 |
commit | 53bcdb544602074deb17839a75cd35b1fed6d599 (patch) | |
tree | e8420edb10153f31d7bdc71ab64fc884e4c14ff7 /include/libmnl | |
parent | b0967993a76da06d306112bef31d9861b584fa07 (diff) | |
download | libmnl-53bcdb544602074deb17839a75cd35b1fed6d599.tar.gz libmnl-53bcdb544602074deb17839a75cd35b1fed6d599.zip |
callback: mnl_cb_run should use a void *
Because in most cases, it won't be a nul-terminated string :)
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'include/libmnl')
-rw-r--r-- | include/libmnl/libmnl.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index a61a0b1..d35e1c1 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -141,10 +141,10 @@ extern int mnl_attr_parse_nested(const struct nlattr *attr, mnl_attr_cb_t cb, vo typedef int (*mnl_cb_t)(const struct nlmsghdr *nlh, void *data); -extern int mnl_cb_run(const char *buf, size_t numbytes, unsigned int seq, +extern int mnl_cb_run(const void *buf, size_t numbytes, unsigned int seq, unsigned int portid, mnl_cb_t cb_data, void *data); -extern int mnl_cb_run2(const char *buf, size_t numbytes, unsigned int seq, +extern int mnl_cb_run2(const void *buf, size_t numbytes, unsigned int seq, unsigned int portid, mnl_cb_t cb_data, void *data, mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len); |