]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MEDIUM: pattern: change the pattern data integer from unsigned to signed
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Dec 2011 15:44:06 +0000 (16:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 30 Dec 2011 16:33:25 +0000 (17:33 +0100)
Till now the pattern data integer type was unsigned without any
particular reason. In order to make ACLs use it, we must switch it
to signed int instead.

include/types/pattern.h

index 9b4e3405d97e026d1b802c60ae98a1fbc1683d15..da383bad79fb46bf345aa49bad1e6ebe24d084fd 100644 (file)
@@ -70,7 +70,7 @@ struct pattern_arg {
 union pattern_data {
        struct in_addr ip;        /* used for ipv4 type */
        struct in6_addr ipv6;     /* used for ipv6 type */
-       uint32_t integer;         /* used for unsigned 32bits integer type */
+       int integer;              /* used for unsigned 32bits integer type */
        struct chunk str;         /* used for char string type or buffers*/
 };