From 6b175b40cb14ba898fdbc3d6f6c0a4079b04908c Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 14 Aug 2009 20:19:13 +0200 Subject: [PATCH] psd: jiffies is an unsigned long, fix compiler warning "jiffies" has always been unsigned long, not clock_t. xt_psd.c:176:7: warning: comparison of distinct pointer types lacks a cast --- extensions/xt_psd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/xt_psd.c b/extensions/xt_psd.c index 32e41b3..404bb48 100644 --- a/extensions/xt_psd.c +++ b/extensions/xt_psd.c @@ -59,7 +59,7 @@ struct port { */ struct host { struct host *next; /* Next entry with the same hash */ - clock_t timestamp; /* Last update time */ + unsigned long timestamp; /* Last update time */ struct in_addr src_addr; /* Source address */ struct in_addr dest_addr; /* Destination address */ unsigned short src_port; /* Source port */ @@ -106,7 +106,7 @@ xt_psd_match(const struct sk_buff *pskb, const struct xt_match_param *match) struct in_addr addr; u_int16_t src_port,dest_port; u_int8_t tcp_flags, proto; - clock_t now; + unsigned long now; struct host *curr, *last, **head; int hash, index, count; /* Parameters from userspace */