mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
[BUILD] fix warning in proto_tcp.c with gcc >= 4
signedness issues.
This commit is contained in:
parent
61eadc028f
commit
c7e961e5f7
@ -132,7 +132,7 @@ struct proxy {
|
|||||||
struct list redirect_rules; /* content redirecting rules (chained) */
|
struct list redirect_rules; /* content redirecting rules (chained) */
|
||||||
struct list switching_rules; /* content switching rules (chained) */
|
struct list switching_rules; /* content switching rules (chained) */
|
||||||
struct { /* TCP request processing */
|
struct { /* TCP request processing */
|
||||||
int inspect_delay; /* inspection delay */
|
unsigned int inspect_delay; /* inspection delay */
|
||||||
struct list inspect_rules; /* inspection rules */
|
struct list inspect_rules; /* inspection rules */
|
||||||
} tcp_req;
|
} tcp_req;
|
||||||
struct server *srv; /* known servers */
|
struct server *srv; /* known servers */
|
||||||
|
@ -333,7 +333,7 @@ static int tcp_parse_tcp_req(char **args, int section_type, struct proxy *curpx,
|
|||||||
struct proxy *defpx, char *err, int errlen)
|
struct proxy *defpx, char *err, int errlen)
|
||||||
{
|
{
|
||||||
const char *ptr = NULL;
|
const char *ptr = NULL;
|
||||||
int val;
|
unsigned int val;
|
||||||
int retlen;
|
int retlen;
|
||||||
|
|
||||||
if (!*args[1]) {
|
if (!*args[1]) {
|
||||||
@ -480,7 +480,7 @@ acl_fetch_req_ssl_ver(struct proxy *px, struct session *l4, void *l7, int dir,
|
|||||||
if (!bleft)
|
if (!bleft)
|
||||||
goto too_short;
|
goto too_short;
|
||||||
|
|
||||||
data = l4->req->w;
|
data = (const unsigned char *)l4->req->w;
|
||||||
if ((*data >= 0x14 && *data <= 0x17) || (*data == 0xFF)) {
|
if ((*data >= 0x14 && *data <= 0x17) || (*data == 0xFF)) {
|
||||||
/* SSLv3 header format */
|
/* SSLv3 header format */
|
||||||
if (bleft < 5)
|
if (bleft < 5)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user