From: "flichtenheld (Code Review)" Date: Thu, 24 Jul 2025 12:31:44 +0000 References: Reply-To: frank@...2641..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net Message-ID: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="eh2tLo9AuLQ="; 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 --eh2tLo9AuLQ= 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 do a code review. Please visit http://gerrit.openvpn.net/c/openvpn/+/1107?usp=3Demail to review the following change. 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/1 diff --git a/src/openvpn/event.h b/src/openvpn/event.h index 389f80d..eddff4d 100644 --- a/src/openvpn/event.h +++ b/src/openvpn/event.h @@ -36,8 +36,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: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-MessageType: newchange --eh2tLo9AuLQ= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is currently required from: plaisthos.

flichtenheld would like plaisthos to review this change.

V= iew Change

events: Make sure rwflags are treated as unsigned

eve= nt_set_return.rwflags is already unsigned, make sure the
flags are as we= ll to avoid spurious conversion warnings.

Change-Id: I0272b709b90754= 5de05bfded03a649b259ce5af6
Signed-off-by: Frank Lichtenheld <frank@...1186...= .2641...>
---
M src/openvpn/event.h
1 file changed, 2 insertion= s(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/open=
vpn refs/changes/07/1107/1
diff --git a/src/openvpn/event.h b/src/o=
penvpn/event.h
index 389f80d..eddff4d 100644
--- a/src/openvpn/event.h
+++ b/src/openvpn/event.h
@@ -36,8 +36,8 @@
#define WRITE_SHIFT 1

#define EVENT_UNDEF 4
-#define EVENT_READ (1 << REA= D_SHIFT)
-#define EVENT= _WRITE (1 << WRITE_SHIFT)
+#define EVENT_READ (1u << READ_SHIFT)
= +#define EVENT_WRITE (1u &l= t;< WRITE_SHIFT)

/* event flags retur= ned by io_wait.
*

To = view, visit change 1107. To unsubscribe, or for help writing mail filters, visi= t settings.

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I0272b709b907545de05bfded03a= 649b259ce5af6
Gerrit-Change-Number: 1107
Gerrit-PatchSet: 1
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: newchange
--eh2tLo9AuLQ=--