From: "plaisthos (Code Review)" Date: Mon, 16 Sep 2024 13:04:02 +0000 References: Reply-To: arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="Plj6j6PKwa0="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: Make read/write_tun_header static List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: openvpn-devel --Plj6j6PKwa0= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld. Hello flichtenheld, I'd like you to do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=3Demail to review the following change. Change subject: Make read/write_tun_header static ...................................................................... Make read/write_tun_header static These functions are not used outside tun.c Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa Signed-off-by: Arne Schwabe --- M src/openvpn/tun.c 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/745/1 diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c index 1f0eadd..0832375 100644 --- a/src/openvpn/tun.c +++ b/src/openvpn/tun.c @@ -1822,7 +1822,7 @@ } } -int +static int write_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type =3D=3D DEV_TYPE_TUN) @@ -1855,7 +1855,7 @@ } } -int +static int read_tun_header(struct tuntap *tt, uint8_t *buf, int len) { if (tt->type =3D=3D DEV_TYPE_TUN) --=20 To view, visit http://gerrit.openvpn.net/c/openvpn/+/745?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I028634dba74a273c725b0beb16b674897b3c23fa Gerrit-Change-Number: 745 Gerrit-PatchSet: 1 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel Gerrit-Attention: flichtenheld Gerrit-MessageType: newchange --Plj6j6PKwa0= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: flichtenheld.

plaisthos would like flichtenheld to review this change.

Vi= ew Change

Make read/write_tun_header static

These functions are = not used outside tun.c

Change-Id: I028634dba74a273c725b0beb16b674897= b3c23fa
Signed-off-by: Arne Schwabe <arne@...1227...>
---
M = src/openvpn/tun.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/45/745/1
diff --git a/src/openvpn/tun.c b/src/openvpn/tun.c
i= ndex 1f0eadd..0832375 100644
--- a/src/openvpn/tun.c=
+++ b/src/openvpn/tun.c
@@ -1822,7 +1822,7 @@
}
}

-int
+static int
write_tun_header(struct tunt= ap *tt, uint8_t *buf, int len)
{
if (= tt->type =3D=3D DEV_TYPE_TUN)
@@ -1855,7 +1855,7 @@
}
}

-int
+static int
read_tun_header(struct tuntap= *tt, uint8_t *buf, int len)
{
if (tt= ->type =3D=3D DEV_TYPE_TUN)

To view,= visit ch= ange 745. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I028634dba74a273c725b0beb16b= 674897b3c23fa
Gerrit-Change-Number: 745
Gerrit-PatchSet: 1
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-MessageType: newchange
--Plj6j6PKwa0=--