]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: stream-int: Make si_cs_send() function static
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Feb 2022 08:14:46 +0000 (09:14 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 28 Feb 2022 16:13:36 +0000 (17:13 +0100)
This function was not exported and is only used in stream_interface.c. So
make it static.

src/stream_interface.c

index 21e9d08a301dab6feaa12a200800a2378adf8e13..3b9524b5137008b8c344d3c163559e65ff99bdae 100644 (file)
@@ -93,7 +93,7 @@ struct si_ops si_applet_ops = {
  * directly, the last one is mostly a wake callback.
  */
 int si_cs_recv(struct conn_stream *cs);
-int si_cs_send(struct conn_stream *cs);
+static int si_cs_send(struct conn_stream *cs);
 static int si_cs_process(struct conn_stream *cs);
 
 
@@ -679,7 +679,7 @@ static int si_cs_process(struct conn_stream *cs)
  * caller to commit polling changes. The caller should check conn->flags
  * for errors.
  */
-int si_cs_send(struct conn_stream *cs)
+static int si_cs_send(struct conn_stream *cs)
 {
        struct connection *conn = __cs_conn(cs);
        struct stream_interface *si = cs_si(cs);