From 14a8a1e7dd1301002c99598a2b067cde3ca19b6e Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 31 Jul 2008 10:41:57 +0200 Subject: 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 --- filter/raw2packet/ulogd_raw2packet_BASE.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filter/raw2packet') diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c index 7c6fd26..e61d904 100644 --- a/filter/raw2packet/ulogd_raw2packet_BASE.c +++ b/filter/raw2packet/ulogd_raw2packet_BASE.c @@ -694,7 +694,7 @@ static int _interp_iphdr(struct ulogd_pluginstance *pi, u_int32_t len) GET_VALUE(pi->input.keys, INKEY_RAW_PCKT).ptr; void *nexthdr = (u_int32_t *)iph + iph->ihl; - if (len < sizeof(struct iphdr) || len <= iph->ihl * 4) + if (len < sizeof(struct iphdr) || len <= (u_int32_t)(iph->ihl * 4)) return ULOGD_IRET_OK; len -= iph->ihl * 4; -- cgit v1.2.3