From 024aef34cd2ba6ab9b91c61c9b08f0769243de20 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 28 Mar 2010 13:35:58 +0200 Subject: use `unsigned int' for number of bytes and array size in callback API --- src/callback.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/callback.c b/src/callback.c index 7c97df8..1325bea 100644 --- a/src/callback.c +++ b/src/callback.c @@ -65,9 +65,9 @@ static mnl_cb_t default_cb_array[NLMSG_MIN_TYPE] = { * * This function propagates the callback return value. */ -int mnl_cb_run2(const char *buf, int numbytes, unsigned int seq, +int mnl_cb_run2(const char *buf, unsigned int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data, - mnl_cb_t *cb_ctl_array, int cb_ctl_array_len) + mnl_cb_t *cb_ctl_array, unsigned int cb_ctl_array_len) { int ret = MNL_CB_OK; struct nlmsghdr *nlh = (struct nlmsghdr *)buf; @@ -121,7 +121,7 @@ out: * * This function propagates the callback return value. */ -int mnl_cb_run(const char *buf, int numbytes, unsigned int seq, +int mnl_cb_run(const char *buf, unsigned int numbytes, unsigned int seq, mnl_cb_t cb_data, void *data) { return mnl_cb_run2(buf, numbytes, seq, cb_data, data, NULL, 0); -- cgit v1.2.3