Jan Engelhardt wrote:
On Monday 2008-07-14 15:26, Patrick McHardy wrote:
Jan Engelhardt wrote:
commit ffffffffffffffffffffffffffffffffffffffff
Author: Jan Engelhardt <jengelh@xxxxxxxxxx>
Date: Sat Apr 12 08:24:12 2008 +0200
[NETFILTER]: Use unsigned types for hooknum and pf vars
and (try to) consistently use u_int8_t for the L3 family.
+extern struct xt_match *xt_find_match(u_int8_t af, const char *name,
+ u8 revision);
It would have been cleaner to at least consistently use u_int8_t/u8
within one function. Alternatively I'd prefer the u8 type since
people usually use that in new patches, so over time we'd get rid
of the type inconsistencies.
If you really want to get rid of type inconsistencies in the source,
the C99 stdint types should be used. In retrospect, defining our own
types like [us](8|16|32) are not really needed, much less for new code.
Thats what netfilter used initially. But as I said, people
usually use the u{8,16,32} types for networking and there's
little point in fighting against that. So please either use
u8 everywhere or at least don't mix the types in the same
function.
--
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