[NETFILTER]: compat offsets size change

Used by compat code offsets of entries should be 'unsigned int' as entries
array size has this dimension.

Signed-off-by: Dmitry Mishin <dim@openvz.org>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Dmitry Mishin and committed by David S. Miller e5b5ef7d 63ea998a

+5 -5
+5 -5
net/ipv4/netfilter/ip_tables.c
··· 919 919 #ifdef CONFIG_COMPAT 920 920 struct compat_delta { 921 921 struct compat_delta *next; 922 - u_int16_t offset; 922 + unsigned int offset; 923 923 short delta; 924 924 }; 925 925 926 926 static struct compat_delta *compat_offsets = NULL; 927 927 928 - static int compat_add_offset(u_int16_t offset, short delta) 928 + static int compat_add_offset(unsigned int offset, short delta) 929 929 { 930 930 struct compat_delta *tmp; 931 931 ··· 957 957 } 958 958 } 959 959 960 - static short compat_calc_jump(u_int16_t offset) 960 + static short compat_calc_jump(unsigned int offset) 961 961 { 962 962 struct compat_delta *tmp; 963 963 short delta; ··· 997 997 void *base, struct xt_table_info *newinfo) 998 998 { 999 999 struct ipt_entry_target *t; 1000 - u_int16_t entry_offset; 1000 + unsigned int entry_offset; 1001 1001 int off, i, ret; 1002 1002 1003 1003 off = 0; ··· 1467 1467 { 1468 1468 struct ipt_entry_target *t; 1469 1469 struct ipt_target *target; 1470 - u_int16_t entry_offset; 1470 + unsigned int entry_offset; 1471 1471 int ret, off, h, j; 1472 1472 1473 1473 duprintf("check_compat_entry_size_and_hooks %p\n", e);