On Wednesday 2009-02-18 16:00, Patrick McHardy wrote: > Jan Engelhardt wrote: >> On Thursday 2009-02-12 19:57, Evgeniy Polyakov wrote: >>>> Are you sure it is safe to use arch-dependent types like 'int'? >>> I would be very surprised if Linux will ever run on weird arch where int >>> is not 32 bits. >> >> If GCC had a switch to compile with I16 or I64, I could test, >> but it does not. 'long', as used in the netfilter includes, >> already bit people in pre-2.6.19, and nowadays we have that compat >> crap thing in place.. Just don't take any chance, and go the safe >> route with uint32_t. > > Tons of APIs will break when the size of int changes and differs > between userspace and kernel, this is a non-realistic risk in my > opinion. It is very realistic. Compilers for Microsoft DOS/Windows used to map 'int' to a 16-bit type, and they changed that when 32-bit became modern. Don't you think that too broke lots of stuff? -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html