]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: h2: rename h2c_snd_settings() to h2c_send_settings()
authorWilly Tarreau <w@1wt.eu>
Mon, 8 Oct 2018 05:13:08 +0000 (07:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2018 14:58:01 +0000 (16:58 +0200)
It's the only function not called h2c_send_<something>() and it took me
a while to find it.

src/mux_h2.c

index 82542885366610b56a7fae42fa8429045a2313c3..c01a42a299bb3490576eee47731119dccc2079bb 100644 (file)
@@ -753,7 +753,7 @@ static struct h2s *h2c_stream_new(struct h2c *h2c, int id)
  * it couldn't do anything. It may return an error in h2c. See RFC7540#11.3 for
  * the various settings codes.
  */
-static int h2c_snd_settings(struct h2c *h2c)
+static int h2c_send_settings(struct h2c *h2c)
 {
        struct buffer *res;
        char buf_data[100]; // enough for 15 settings
@@ -850,7 +850,7 @@ static int h2c_frt_recv_preface(struct h2c *h2c)
                return 0;
        }
 
-       ret2 = h2c_snd_settings(h2c);
+       ret2 = h2c_send_settings(h2c);
        if (ret2 > 0)
                b_del(&h2c->dbuf, ret1);