]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUILD] pattern: use 'int' instead of 'int32_t'
authorWilly Tarreau <w@1wt.eu>
Sun, 14 Nov 2010 13:24:27 +0000 (14:24 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Nov 2010 13:24:27 +0000 (14:24 +0100)
Ross West reported that int32_t breaks compilation on FreeBSD. Since an
int is 32-bit on all supported platforms and we already rely on that,
change the type.

include/types/pattern.h

index 78614bceaec8699a2e6aa0886a92436b0b557636..a3d5c3673b38cd448606fd9eb827886f88ecc27c 100644 (file)
@@ -54,7 +54,7 @@ enum {
 union pattern_arg_data {
        struct in_addr ip;        /* used for ipv4 type */
        uint32_t integer;         /* used for unsigned 32bits integer type */
-       int32_t sinteger;         /* used for signed 32bits integer type */
+       int sinteger;             /* used for signed 32bits integer type */
        struct chunk str;
 };