From: Willy Tarreau Date: Sat, 10 Mar 2012 08:05:30 +0000 (+0100) Subject: CLEANUP: silence signedness warning in acl.c X-Git-Tag: v1.5-dev8~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62e7c7146e54add2c4b0673a347c57d54eb6acf9;p=thirdparty%2Fhaproxy.git CLEANUP: silence signedness warning in acl.c The recent SNI patch introduced a trivial warning in acl.c. --- diff --git a/src/acl.c b/src/acl.c index 9a20cc25f9..6d4eed3d73 100644 --- a/src/acl.c +++ b/src/acl.c @@ -423,12 +423,9 @@ acl_fetch_ssl_hello_sni(struct proxy *px, struct session *l4, void *l7, int dir, name_len = (data[7] << 8) + data[8]; if (name_type == 0) { /* hostname */ - temp_pattern.data.str.str = data + 9; + temp_pattern.data.str.str = (char *)data + 9; temp_pattern.data.str.len = name_len; test->flags = ACL_TEST_F_VOLATILE; - //fprintf(stderr, "found SNI : <"); - //write(2, test->ptr, test->len); - //fprintf(stderr, ">\n"); return 1; } }