From 895839909804d91f6e897bef1c1e32c0b0a9db94 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 11 Nov 2010 13:57:57 +0100 Subject: nlmsg: use bool for mnl_nlmsg_ok() Signed-off-by: Jan Engelhardt Signed-off-by: Pablo Neira Ayuso --- src/nlmsg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nlmsg.c') diff --git a/src/nlmsg.c b/src/nlmsg.c index a3dc0c1..e05fb50 100644 --- a/src/nlmsg.c +++ b/src/nlmsg.c @@ -156,7 +156,7 @@ void *mnl_nlmsg_get_payload_offset(const struct nlmsghdr *nlh, size_t offset) * The len parameter may become negative in malformed messages during message * iteration, that is why we use a signed integer. */ -int mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) +bool mnl_nlmsg_ok(const struct nlmsghdr *nlh, int len) { return len >= (int)sizeof(struct nlmsghdr) && nlh->nlmsg_len >= sizeof(struct nlmsghdr) && -- cgit v1.2.3