Skip to contentSkip to conversation

Change in openvpn[release/2.6]: route: Add #endif comment for uncrustify compliance

Openvpn-devel In review flichtenheld (Code Review) 2 participants 6 messages Oct 17, 2025 – Oct 18, 2025 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): gerrit.1760700482000.I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4@...2715...

#1 lore raw

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/+/1284?usp=email

to review the following change.

Change subject: route: Add #endif comment for uncrustify compliance
......................................................................

route: Add #endif comment for uncrustify compliance

Cherry-pick dca6b03098ab0f3ef808c891673305651dc6704a broke uncrustify compliance. Apparently this one added line pushed it over the limit to require the #endif comment.

Change-Id I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4

---
M src/openvpn/route.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/84/1284/1

src/openvpn/route.c +1 -1
index 3ff9717..75e94c2 100644
@@ -2368,7 +2368,7 @@
     {
         gateway_needed = true;
     }
-#endif
+#endif /* ifndef _WIN32 */
 
     struct gc_arena gc = gc_new();
     struct argv argv = argv_new();

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4
Gerrit-Change-Number: 1284
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>

#2 lore raw
In reply to a message not in the archive

Attention is currently required from: flichtenheld, plaisthos.

cron2 has posted comments on this change by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email )

Change subject: route: Add #endif comment for uncrustify compliance
......................................................................

Patch Set 1: Code-Review+2

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: comment
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4
Gerrit-Change-Number: 1284
Gerrit-PatchSet: 1
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-Comment-Date: Fri, 17 Oct 2025 20:57:16 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes

#3 lore raw

PATCH 1/1 route: Add #endif comment for uncrustify compliance

In reply to a message not in the archive

From: Frank Lichtenheld <[email protected]...>

Cherry-pick dca6b03098ab0f3ef808c891673305651dc6704a broke uncrustify compliance. Apparently this one added line pushed it over the limit to require the #endif comment.

Change-Id I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1284
---

This change was reviewed on Gerrit and approved by at least one developer. I request to merge it to release/2.6.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1284
This mail reflects revision 1 of this Change.

Acked-by according to Gerrit (reflected above):
Gert Doering <[email protected]...>

src/openvpn/route.c +1 -1
index 3ff9717..75e94c2 100644
@@ -2368,7 +2368,7 @@
     {
         gateway_needed = true;
     }
-#endif
+#endif /* ifndef _WIN32 */
 
     struct gc_arena gc = gc_new();
     struct argv argv = argv_new();
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: route: Add #endif comment for uncrustify compliance

Yeah, this is a really silly edge-case - you fix one -Werror fail, and that triggers an uncrustify style violation. No code change, so nothing to test here...

Your patch has been applied to the release/2.6 branch.

commit cf6c12f92af4391d82b1ca8e235c4cefde9ef5d2

Author: Frank Lichtenheld
Date:   Fri Oct 17 22:57:24 2025 +0200
     route: Add #endif comment for uncrustify compliance

     Signed-off-by: Frank Lichtenheld <[email protected]...>
     Acked-by: Gert Doering <[email protected]...>
     Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1284
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg33428.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

#5 lore raw
In reply to a message not in the archive

cron2 has uploaded a new patch set (#2) to the change originally created by flichtenheld. ( http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email )

The following approvals got outdated and were removed:
Code-Review+2 by cron2

Change subject: route: Add #endif comment for uncrustify compliance
......................................................................

route: Add #endif comment for uncrustify compliance

Cherry-pick dca6b03098ab0f3ef808c891673305651dc6704a broke uncrustify compliance. Apparently this one added line pushed it over the limit to require the #endif comment.

Change-Id I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1284
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg33428.html

---
M src/openvpn/route.c

1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/84/1284/2

src/openvpn/route.c +1 -1
index 3ff9717..75e94c2 100644
@@ -2368,7 +2368,7 @@
     {
         gateway_needed = true;
     }
-#endif
+#endif /* ifndef _WIN32 */
 
     struct gc_arena gc = gc_new();
     struct argv argv = argv_new();

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: newpatchset
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4
Gerrit-Change-Number: 1284
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>

#6 lore raw
In reply to a message not in the archive

cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email )

Change subject: route: Add #endif comment for uncrustify compliance
......................................................................

route: Add #endif comment for uncrustify compliance

Cherry-pick dca6b03098ab0f3ef808c891673305651dc6704a broke uncrustify compliance. Apparently this one added line pushed it over the limit to require the #endif comment.

Change-Id I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1284
Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg33428.html

---
M src/openvpn/route.c

1 file changed, 1 insertion(+), 1 deletion(-)
src/openvpn/route.c +1 -1
index 3ff9717..75e94c2 100644
@@ -2368,7 +2368,7 @@
     {
         gateway_needed = true;
     }
-#endif
+#endif /* ifndef _WIN32 */
 
     struct gc_arena gc = gc_new();
     struct argv argv = argv_new();

--
To view, visit http://gerrit.openvpn.net/c/openvpn/+/1284?usp=email
To unsubscribe, or for help writing mail filters, visit http://gerrit.openvpn.net/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: release/2.6
Gerrit-Change-Id: I46d0e4be82a5cc7e466d6e8f658e5b131b5401c4
Gerrit-Change-Number: 1284
Gerrit-PatchSet: 2
Gerrit-Owner: flichtenheld <[email protected]...>
Gerrit-Reviewer: cron2 <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>