summaryrefslogtreecommitdiffstats
path: root/libipulog
diff options
context:
space:
mode:
authorEric Leblond <eric@inl.fr>2008-07-31 10:41:57 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2008-07-31 10:41:57 +0200
commit14a8a1e7dd1301002c99598a2b067cde3ca19b6e (patch)
tree3a9036bcafca17c49cc6b91850d759bd5dec1b2e /libipulog
parenta52690d2dbb0e14d705ba990cda9b7869a747c0b (diff)
cleanup: fix compilation warning related to signed and unsigned comparisons
This patch fixes the warning related to signed and unsigned comparaison. Signed-off-by: Eric Leblond <eric@inl.fr>
Diffstat (limited to 'libipulog')
-rw-r--r--libipulog/libipulog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libipulog/libipulog.c b/libipulog/libipulog.c
index 6b7ea35..2f58ea6 100644
--- a/libipulog/libipulog.c
+++ b/libipulog/libipulog.c
@@ -96,7 +96,7 @@ ipulog_netlink_recvfrom(const struct ipulog_handle *h,
return -1;
}
nlh = (struct nlmsghdr *)buf;
- if (nlh->nlmsg_flags & MSG_TRUNC || status > len) {
+ if (nlh->nlmsg_flags & MSG_TRUNC || (size_t) status > len) {
ipulog_errno = IPULOG_ERR_TRUNC;
return -1;
}