From: "flichtenheld (Code Review)" Date: Tue, 5 Aug 2025 16:00:20 +0000 In-Reply-To: References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: <17dfd9f10676ff8163fdb54e20f79d83c7704dee-EmailReplacePatchSet-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="x9iN2XqW0Ho="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: events: Make sure rwflags are treated as unsigned List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: openvpn-devel --x9iN2XqW0Ho= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: plaisthos. Hello plaisthos, I'd like you to reexamine a change. Please visit http://gerrit.openvpn.net/c/openvpn/+/1107?usp=3Demail to look at the new patch set (#4). Change subject: events: Make sure rwflags are treated as unsigned ...................................................................... events: Make sure rwflags are treated as unsigned event_set_return.rwflags is already unsigned, make sure the flags are as well to avoid spurious conversion warnings. Change-Id: I0272b709b907545de05bfded03a649b259ce5af6 Signed-off-by: Frank Lichtenheld --- M src/openvpn/event.h 1 file changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/07/1107/4 diff --git a/src/openvpn/event.h b/src/openvpn/event.h index 8422996..8a89a25 100644 --- a/src/openvpn/event.h +++ b/src/openvpn/event.h @@ -35,8 +35,8 @@ #define WRITE_SHIFT 1 #define EVENT_UNDEF 4 -#define EVENT_READ (1 << READ_SHIFT) -#define EVENT_WRITE (1 << WRITE_SHIFT) +#define EVENT_READ (1u << READ_SHIFT) +#define EVENT_WRITE (1u << WRITE_SHIFT) /* event flags returned by io_wait. * -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1107?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: I0272b709b907545de05bfded03a649b259ce5af6 Gerrit-Change-Number: 1107 Gerrit-PatchSet: 4 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newpatchset --x9iN2XqW0Ho= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld uploaded patch set #4 to this change.

<= p>View C= hange

events: Make sure rwflags are treated as unsigned

event_se= t_return.rwflags is already unsigned, make sure the
flags are as well to= avoid spurious conversion warnings.

Change-Id: I0272b709b907545de05= bfded03a649b259ce5af6
Signed-off-by: Frank Lichtenheld <frank@...2746...= ...>
---
M src/openvpn/event.h
1 file changed, 2 insertions(+),= 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn r=
efs/changes/07/1107/4
diff --git a/src/openvpn/event.h b/src/openvp=
n/event.h
index 8422996..8a89a25 100644
---= a/src/openvpn/event.h
+++ b/src/openvpn/event.h
= @@ -35,8 +35,8 @@
#define WRITE_SHIFT 1

#define EVENT_UNDEF 4
-#define EVENT_READ (1 << READ_SHIFT)-#define EVENT_WRITE (1 <<= ; WRITE_SHIFT)
+#defi= ne EVENT_READ (1u << READ_SHIFT)
+#define EVENT_WRITE (1u << WRITE_SHIFT)
/* event flags returned by io_wait.
*

To view, visit change 1107. To unsub= scribe, or for help writing mail filters, visit settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0272b709b907545de05bfded03a= 649b259ce5af6
Gerrit-Change-Number: 1107
Gerrit-PatchSet: 4
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-Attention: plaisthos <arne-openvpn@...220...= ..1227...>
Gerrit-MessageType: newpatchset
--x9iN2XqW0Ho=--