From: "cron2 (Code Review)" Date: Thu, 7 May 2026 05:49:26 +0000 In-Reply-To: References: Reply-To: gert@...1296..., 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="GZh7ZohP6UI="; charset=UTF-8 Subject: [Openvpn-devel] [XS] Change in openvpn[master]: route: Clarify operator precedence in a & b ? c : d List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: flichtenheld Cc: plaisthos , openvpn-devel --GZh7ZohP6UI= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Attention is currently required from: flichtenheld, plaisthos. cron2 has posted comments on this change by flichtenheld. ( http://gerrit.o= penvpn.net/c/openvpn/+/1668?usp=3Demail ) Change subject: route: Clarify operator precedence in a & b ? c : d ...................................................................... Patch Set 1: Code-Review-1 (1 comment) File src/openvpn/route.c: http://gerrit.openvpn.net/c/openvpn/+/1668/comment/7004e626_e74dcd6c?usp=3D= email : PS1, Line 2887: .metric =3D ((r->flags & RT_MET= RIC_DEFINED) ? r->metric : -1) }; can we get rid of the outer braces? .metric =3D ( a & b )? c: d is clear enough to readers (IMHO easier to grasp) and should be fine for th= e compiler? --=20 To view, visit http://gerrit.openvpn.net/c/openvpn/+/1668?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: comment Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: I5c9b54dca0a14688a3bb7798cb086f5bde7311b8 Gerrit-Change-Number: 1668 Gerrit-PatchSet: 1 Gerrit-Owner: flichtenheld Gerrit-Reviewer: cron2 Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-Attention: plaisthos Gerrit-Attention: flichtenheld Gerrit-Comment-Date: Thu, 07 May 2026 05:49:26 +0000 Gerrit-HasComments: Yes Gerrit-Has-Labels: Yes --GZh7ZohP6UI= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Attention is cur= rently required from: flichtenheld, plaisthos.

Patch set 1:Code-Review -1=

V= iew Change

1 comment:

  • File src/openvpn/route.c:

  • Patch Set #= 1, Line 2887: = .metric =3D ((r->flags & RT_METRIC_DEFINED) ? r-&= gt;metric : -1) };

    can we get rid of the outer braces?

    .metr= ic =3D ( a & b )? c: d

    is clear enough to readers (IMHO easier to g= rasp) and should be fine for the compiler?

To vie= w, visit change 1668. To unsubscribe, or for help writing mail filters, visit <= a href=3D"http://gerrit.openvpn.net/settings?usp=3Demail">settings.

=
<= meta itemprop=3D"name" content=3D"View Change"/>
Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I5c9b54dca0a14688a3bb7798cb0= 86f5bde7311b8
Gerrit-Change-Number: 1668
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <frank@...2723...= .>
Gerrit-Reviewer: cron2 <gert@...1296...>=
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-Attention: flichtenheld <frank@...2375...= 41...>
Gerrit-Comment-Date: Thu, 07 May 2026 05:49:26= +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
= --GZh7ZohP6UI=--