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/ulogd_filter_PWSNIFF.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'filter/ulogd_filter_PWSNIFF.c') diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c index 290e4cb..3cbafb6 100644 --- a/filter/ulogd_filter_PWSNIFF.c +++ b/filter/ulogd_filter_PWSNIFF.c @@ -66,7 +66,8 @@ static int interp_pwsniff(struct ulogd_pluginstance *pi) struct tcphdr *tcph; unsigned int tcplen; unsigned char *ptr, *begp, *pw_begp, *endp, *pw_endp; - int len, pw_len, i, cont = 0; + int len, pw_len, cont = 0; + unsigned int i; if (!IS_VALID(pi->input.keys[0])) return ULOGD_IRET_STOP; -- cgit v1.2.3