aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-09-18 11:53:04 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-09-18 17:14:33 +0200
commit7d8804beb8ecbd07b51dbbeaf14289d37f4f8107 (patch)
tree754d2912034c3bfdb2db32de60f4b55044fde859
parent5ff5d55291d2223c65f889b8eee446b8ed2c551c (diff)
downloadpasst-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar.gz
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar.bz2
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar.lz
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar.xz
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.tar.zst
passt-7d8804beb8ecbd07b51dbbeaf14289d37f4f8107.zip
tcp: Make some extra functions private
tcp_send_flag() and tcp_probe_peek_offset_cap() are not used outside tcp.c, and have no prototype in a header. Make them static. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcp.c b/tcp.c
index f9fe1b9..14b48a8 100644
--- a/tcp.c
+++ b/tcp.c
@@ -1235,7 +1235,7 @@ int tcp_prepare_flags(struct ctx *c, struct tcp_tap_conn *conn,
*
* Return: negative error code on connection reset, 0 otherwise
*/
-int tcp_send_flag(struct ctx *c, struct tcp_tap_conn *conn, int flags)
+static int tcp_send_flag(struct ctx *c, struct tcp_tap_conn *conn, int flags)
{
return tcp_buf_send_flag(c, conn, flags);
}
@@ -2477,7 +2477,7 @@ static void tcp_sock_refill_init(const struct ctx *c)
*
* Return: true if supported, false otherwise
*/
-bool tcp_probe_peek_offset_cap(sa_family_t af)
+static bool tcp_probe_peek_offset_cap(sa_family_t af)
{
bool ret = false;
int s, optv = 0;