]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: rename duplicate function names
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Nov 2022 09:51:19 +0000 (10:51 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Dec 2022 13:45:43 +0000 (14:45 +0100)
qc_rcv_buf and qc_snd_buf are names used for static functions in both
quic-sock and quic-mux. To remove this ambiguity, slightly modify names
used in MUX code.

In the future, we should properly define a unique prefix for all QUIC
MUX functions to avoid such problem in the future.

This change is part of quic-conn owned socket implementation.
It may be backported to 2.7 after a period of observation.

src/mux_quic.c

index e97621caa693d6d2dc7eff28d60a5e6ef1009679..89da1e6971c114c061045536273c357001d2c0b1 100644 (file)
@@ -2097,8 +2097,8 @@ static void qc_detach(struct sedesc *sd)
 }
 
 /* Called from the upper layer, to receive data */
-static size_t qc_rcv_buf(struct stconn *sc, struct buffer *buf,
-                         size_t count, int flags)
+static size_t qc_recv_buf(struct stconn *sc, struct buffer *buf,
+                          size_t count, int flags)
 {
        struct qcs *qcs = __sc_mux_strm(sc);
        size_t ret = 0;
@@ -2136,8 +2136,8 @@ static size_t qc_rcv_buf(struct stconn *sc, struct buffer *buf,
        return ret;
 }
 
-static size_t qc_snd_buf(struct stconn *sc, struct buffer *buf,
-                         size_t count, int flags)
+static size_t qc_send_buf(struct stconn *sc, struct buffer *buf,
+                          size_t count, int flags)
 {
        struct qcs *qcs = __sc_mux_strm(sc);
        size_t ret;
@@ -2297,8 +2297,8 @@ static const struct mux_ops qc_ops = {
        .init = qc_init,
        .destroy = qc_destroy,
        .detach = qc_detach,
-       .rcv_buf = qc_rcv_buf,
-       .snd_buf = qc_snd_buf,
+       .rcv_buf = qc_recv_buf,
+       .snd_buf = qc_send_buf,
        .subscribe = qc_subscribe,
        .unsubscribe = qc_unsubscribe,
        .wake = qc_wake,