From: Amaury Denoyelle Date: Mon, 4 Jul 2022 13:48:57 +0000 (+0200) Subject: CLEANUP: mux-quic: do not export qc_get_ncbuf X-Git-Tag: v2.7-dev2~104 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a441ec9c7a6bb97029b4f9432efc94731ace601c;p=thirdparty%2Fhaproxy.git CLEANUP: mux-quic: do not export qc_get_ncbuf qc_get_ncbuf() is only used internally : thus its prototype in QUIC MUX include is not required. --- diff --git a/include/haproxy/mux_quic.h b/include/haproxy/mux_quic.h index 0846ca7b79..3da5736e75 100644 --- a/include/haproxy/mux_quic.h +++ b/include/haproxy/mux_quic.h @@ -18,7 +18,6 @@ struct qcs *qcs_new(struct qcc *qcc, uint64_t id, enum qcs_type type); void qcs_free(struct qcs *qcs); struct buffer *qc_get_buf(struct qcs *qcs, struct buffer *bptr); -struct ncbuf *qc_get_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf); int qcs_subscribe(struct qcs *qcs, int event_type, struct wait_event *es); void qcs_notify_recv(struct qcs *qcs); diff --git a/src/mux_quic.c b/src/mux_quic.c index 455b43e48e..cb7a09e6e7 100644 --- a/src/mux_quic.c +++ b/src/mux_quic.c @@ -228,7 +228,7 @@ struct buffer *qc_get_buf(struct qcs *qcs, struct buffer *bptr) return buf; } -struct ncbuf *qc_get_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf) +static struct ncbuf *qc_get_ncbuf(struct qcs *qcs, struct ncbuf *ncbuf) { struct buffer buf = BUF_NULL;