Skip to contentSkip to conversation

Change in openvpn[master]: add missing (void) to win32 function declarations

Openvpn-devel In review cron2 (Code Review) 2 participants 6 messages Feb 5, 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.1738773918000.I59e34058d6e0611208767fbcf39d1b91784ebcf9@...2715...

#1 lore raw

Attention is currently required from: flichtenheld, plaisthos.

Hello plaisthos, flichtenheld,

I'd like you to do a code review.
Please visit

    http://gerrit.openvpn.net/c/openvpn/+/886?usp=email

to review the following change.

Change subject: add missing (void) to win32 function declarations
......................................................................

add missing (void) to win32 function declarations

mingw complains about "old-style function definition" and since we use explicit (void) everyhwere else...

Change-Id I59e34058d6e0611208767fbcf39d1b91784ebcf9

---
M src/openvpn/dco_win.c
M src/openvpn/error.c

2 files changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/86/886/1

src/openvpn/dco_win.c +1 -1
index 46b2d03..62d7109 100644
@@ -502,7 +502,7 @@
 }
 
 const char *
-dco_get_supported_ciphers()
+dco_get_supported_ciphers(void)
 {
     /*
      * this API can be called either from user mode or kernel mode,
src/openvpn/error.c +1 -1
index ec65d5e..d5bb802 100644
@@ -505,7 +505,7 @@
 static int orig_stderr;
 
 int
-get_orig_stderr()
+get_orig_stderr(void)
 {
     return orig_stderr ? orig_stderr : _fileno(stderr);
 }

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I59e34058d6e0611208767fbcf39d1b91784ebcf9
Gerrit-Change-Number: 886
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: flichtenheld <[email protected]...>
Gerrit-MessageType: newchange

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

Attention is currently required from: cron2, plaisthos.

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

Change subject: add missing (void) to win32 function declarations
......................................................................

Patch Set 1: Code-Review+2

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I59e34058d6e0611208767fbcf39d1b91784ebcf9
Gerrit-Change-Number: 886
Gerrit-PatchSet: 1
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-Attention: plaisthos <[email protected]...>
Gerrit-Attention: cron2 <[email protected]...>
Gerrit-Comment-Date: Wed, 05 Feb 2025 16:58:31 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment

#3 lore raw

PATCH 1/1 add missing (void) to win32 function declarations

In reply to a message not in the archive

mingw complains about "old-style function definition" and since we use explicit (void) everyhwere else...

Change-Id I59e34058d6e0611208767fbcf39d1b91784ebcf9

---

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

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

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

src/openvpn/dco_win.c +1 -1
index 46b2d03..62d7109 100644
@@ -502,7 +502,7 @@
 }
 
 const char *
-dco_get_supported_ciphers()
+dco_get_supported_ciphers(void)
 {
     /*
      * this API can be called either from user mode or kernel mode,
src/openvpn/error.c +1 -1
index ec65d5e..d5bb802 100644
@@ -505,7 +505,7 @@
 static int orig_stderr;
 
 int
-get_orig_stderr()
+get_orig_stderr(void)
 {
     return orig_stderr ? orig_stderr : _fileno(stderr);
 }
#4 lore raw

[Openvpn-devel] [PATCH applied] Re: add missing (void) to win32 function declarations

Found these while testing #815 on ubuntu/mingw...

Patch has been applied to the master branch.

commit 817577d56ba48e160d4c7ad939ce62a93b55ab7f

Author: Gert Doering
Date:   Wed Feb 5 18:02:32 2025 +0100
     add missing (void) to win32 function declarations

     Signed-off-by: Gert Doering <[email protected]...>
     Acked-by: Frank Lichtenheld <[email protected]...>
     Message-Id: <[email protected]...>
     URL: https://www.mail-archive.com/[email protected]/msg30813.html
     Signed-off-by: Gert Doering <[email protected]...>

--
kind regards,

Gert Doering

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

Hello flichtenheld, plaisthos,

I'd like you to reexamine a change. Please visit

    http://gerrit.openvpn.net/c/openvpn/+/886?usp=email

to look at the new patch set (#2).

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

Change subject: add missing (void) to win32 function declarations
......................................................................

add missing (void) to win32 function declarations

mingw complains about "old-style function definition" and since we use explicit (void) everyhwere else...

Change-Id I59e34058d6e0611208767fbcf39d1b91784ebcf9

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30813.html

---
M src/openvpn/dco_win.c
M src/openvpn/error.c

2 files changed, 2 insertions(+), 2 deletions(-)

git pull ssh://gerrit.openvpn.net:29418/openvpn refs/changes/86/886/2

src/openvpn/dco_win.c +1 -1
index 46b2d03..62d7109 100644
@@ -502,7 +502,7 @@
 }
 
 const char *
-dco_get_supported_ciphers()
+dco_get_supported_ciphers(void)
 {
     /*
      * this API can be called either from user mode or kernel mode,
src/openvpn/error.c +1 -1
index ec65d5e..d5bb802 100644
@@ -505,7 +505,7 @@
 static int orig_stderr;
 
 int
-get_orig_stderr()
+get_orig_stderr(void)
 {
     return orig_stderr ? orig_stderr : _fileno(stderr);
 }

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I59e34058d6e0611208767fbcf39d1b91784ebcf9
Gerrit-Change-Number: 886
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: newpatchset

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

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

Change subject: add missing (void) to win32 function declarations
......................................................................

add missing (void) to win32 function declarations

mingw complains about "old-style function definition" and since we use explicit (void) everyhwere else...

Change-Id I59e34058d6e0611208767fbcf39d1b91784ebcf9

Message-Id: <[email protected]...>
URL: https://www.mail-archive.com/[email protected]/msg30813.html

---
M src/openvpn/dco_win.c
M src/openvpn/error.c

2 files changed, 2 insertions(+), 2 deletions(-)
src/openvpn/dco_win.c +1 -1
index 46b2d03..62d7109 100644
@@ -502,7 +502,7 @@
 }
 
 const char *
-dco_get_supported_ciphers()
+dco_get_supported_ciphers(void)
 {
     /*
      * this API can be called either from user mode or kernel mode,
src/openvpn/error.c +1 -1
index ec65d5e..d5bb802 100644
@@ -505,7 +505,7 @@
 static int orig_stderr;
 
 int
-get_orig_stderr()
+get_orig_stderr(void)
 {
     return orig_stderr ? orig_stderr : _fileno(stderr);
 }

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

Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I59e34058d6e0611208767fbcf39d1b91784ebcf9
Gerrit-Change-Number: 886
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <[email protected]...>
Gerrit-Reviewer: flichtenheld <[email protected]...>
Gerrit-Reviewer: plaisthos <[email protected]...>
Gerrit-CC: openvpn-devel <[email protected]>
Gerrit-MessageType: merged