diff options
-rw-r--r-- | include/libmnl/libmnl.h | 4 | ||||
-rw-r--r-- | src/callback.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/include/libmnl/libmnl.h b/include/libmnl/libmnl.h index a63e4c2..6c02d78 100644 --- a/include/libmnl/libmnl.h +++ b/include/libmnl/libmnl.h @@ -102,10 +102,10 @@ extern struct nlattr *mnl_attr_next(const struct nlattr *attr, int *len); typedef int (*mnl_cb_t)(const struct nlmsghdr *nlh, void *data); -extern int mnl_cb_run(const char *buf, unsigned int numbytes, unsigned int seq, +extern int mnl_cb_run(const char *buf, int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data); -extern int mnl_cb_run2(const char *buf, unsigned int numbytes, +extern int mnl_cb_run2(const char *buf, int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data, mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len); diff --git a/src/callback.c b/src/callback.c index 1325bea..1b18b2a 100644 --- a/src/callback.c +++ b/src/callback.c @@ -65,7 +65,7 @@ static mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { * * This function propagates the callback return value. */ -int mnl_cb_run2(const char *buf, unsigned int numbytes, unsigned int seq, +int mnl_cb_run2(const char *buf, int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data, mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) { @@ -121,7 +121,7 @@ out: * * This function propagates the callback return value. */ -int mnl_cb_run(const char *buf, unsigned int numbytes, unsigned int seq, +int mnl_cb_run(const char *buf, int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data) { return mnl_cb_run2(buf, numbytes, seq, cb_data, data, NULL, 0); |