Skip to contentSkip to conversation

small typecast fix for ip_tables.h

PATCH New Thomas Jarosch 1 participant 1 message Apr 11, 2004 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 small typecast fix for ip_tables.h

Hi,

attached is a patch to fix a typecast in ip_tables.h. (Found this one while experimenting with C++ compilation)

Cheers,
Thomas

ip_tables.h renamed from ip_tables.h.old +1 -1
@@ -300,7 +300,7 @@
 static __inline__ struct ipt_entry_target *
 ipt_get_target(struct ipt_entry *e)
 {
-	return (void *)e + e->target_offset;
+	return (struct ipt_entry_target *)e + e->target_offset;
 }
 
 /* fn returns 0 to continue iteration */