]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: acl: use 'chn' instead of 'b' to name channel pointers
authorWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 21:58:13 +0000 (23:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2012 21:58:13 +0000 (23:58 +0200)
As with previous patches, this naming is confusing.

src/acl.c

index 883986cf15b907243905352125bc91a5aa6a3798..d65447a5e3c8bf0afeb8f7a0c06a01ff455ebb98 100644 (file)
--- a/src/acl.c
+++ b/src/acl.c
@@ -120,16 +120,16 @@ acl_fetch_ssl_hello_type(struct proxy *px, struct session *l4, void *l7, unsigne
 {
        int hs_len;
        int hs_type, bleft;
-       struct channel *b;
+       struct channel *chn;
        const unsigned char *data;
 
        if (!l4)
                goto not_ssl_hello;
 
-       b = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
+       chn = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
 
-       bleft = b->buf.i;
-       data = (const unsigned char *)b->buf.p;
+       bleft = chn->buf.i;
+       data = (const unsigned char *)chn->buf.p;
 
        if (!bleft)
                goto too_short;
@@ -324,16 +324,16 @@ acl_fetch_ssl_hello_sni(struct proxy *px, struct session *l4, void *l7, unsigned
                         const struct arg *args, struct sample *smp)
 {
        int hs_len, ext_len, bleft;
-       struct channel *b;
+       struct channel *chn;
        unsigned char *data;
 
        if (!l4)
                goto not_ssl_hello;
 
-       b = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
+       chn = ((opt & SMP_OPT_DIR) == SMP_OPT_DIR_RES) ? l4->rep : l4->req;
 
-       bleft = b->buf.i;
-       data = (unsigned char *)b->buf.p;
+       bleft = chn->buf.i;
+       data = (unsigned char *)chn->buf.p;
 
        /* Check for SSL/TLS Handshake */
        if (!bleft)