From: Arne Schwabe Date: Mon, 16 Sep 2024 13:34:35 +0000 (+0200) Subject: Make read/write_tun_header static X-Git-Tag: v2.7_alpha1~200 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac3a7fd93542420f12d58e5c7490076b5741fb5a;p=thirdparty%2Fopenvpn.git Make read/write_tun_header static These functions are not used outside tun.c Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa Signed-off-by: Arne Schwabe Acked-by: Gert Doering Message-Id: <20240916133436.29943-1-gert@greenie.muc.de> Signed-off-by: Gert Doering URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg29249.html --- diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 82c5c00f6..8b6c34d99 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1792,7 +1792,7 @@ header_modify_read_write_return(int len) } } -int +static int write_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type == DEV_TYPE_TUN) @@ -1825,7 +1825,7 @@ write_tun_header(struct tuntap *tt, uint8_t *buf, int len) } } -int +static int read_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type == DEV_TYPE_TUN)