From: "cron2 (Code Review)" Date: Wed, 19 Feb 2025 11:38:54 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <12e66739f900d1af1b4c7fb5cf823849fab07962-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="8rrTkTInFNc="; charset=UTF-8 Subject: [Openvpn-devel] [S] Change in openvpn[master]: add more (void) to windows specific function prototypes and declarations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: flichtenheld , plaisthos , openvpn-devel --8rrTkTInFNc= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/89= 9?usp=3Demail ) Change subject: add more (void) to windows specific function prototypes and= declarations ...................................................................... add more (void) to windows specific function prototypes and declarations Change-Id: I1a9738ad73c79661a8beb4d9881eba0b4d3aea53 Signed-off-by: Gert Doering Acked-by: Frank Lichtenheld Message-Id: <20250219105930.29508-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30= 929.html Signed-off-by: Gert Doering --- M src/openvpn/win32.c M src/openvpnserv/common.c M src/openvpnserv/service.c M src/openvpnserv/service.h 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index 86556a8..edac71e 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -103,7 +103,7 @@ * Set OpenSSL environment variables to a safe directory */ static void -set_openssl_env_vars(); +set_openssl_env_vars(void); void init_win32(void) @@ -1518,7 +1518,7 @@ } static void -set_openssl_env_vars() +set_openssl_env_vars(void) { const WCHAR *ssl_fallback_dir =3D L"C:\\Windows\\System32"; diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c index a88a724..74bec6e 100644 --- a/src/openvpnserv/common.c +++ b/src/openvpnserv/common.c @@ -181,7 +181,7 @@ LPCTSTR -GetLastErrorText() +GetLastErrorText(void) { DWORD error; static TCHAR buf[256]; diff --git a/src/openvpnserv/service.c b/src/openvpnserv/service.c index 054fc5f..84fd11a 100644 --- a/src/openvpnserv/service.c +++ b/src/openvpnserv/service.c @@ -54,7 +54,7 @@ } static int -CmdInstallServices() +CmdInstallServices(void) { SC_HANDLE service; SC_HANDLE svc_ctl_mgr; @@ -146,7 +146,7 @@ static int -CmdRemoveServices() +CmdRemoveServices(void) { SC_HANDLE service; SC_HANDLE svc_ctl_mgr; diff --git a/src/openvpnserv/service.h b/src/openvpnserv/service.h index da20433..c5f587b 100644 --- a/src/openvpnserv/service.h +++ b/src/openvpnserv/service.h @@ -86,7 +86,7 @@ BOOL ReportStatusToSCMgr(SERVICE_STATUS_HANDLE service, SERVICE_STATUS *st= atus); -LPCTSTR GetLastErrorText(); +LPCTSTR GetLastErrorText(void); DWORD MsgToEventLog(DWORD flags, LPCTSTR lpszMsg, ...); -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/899?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: I1a9738ad73c79661a8beb4d9881eba0b4d3aea53 Gerrit-Change-Number: 899 Gerrit-PatchSet: 2 Gerrit-Owner: cron2 Gerrit-Reviewer: flichtenheld Gerrit-Reviewer: plaisthos Gerrit-CC: openvpn-devel Gerrit-MessageType: merged --8rrTkTInFNc= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 submitted this change.

View Change

add more (void) to windows specific function p=
rototypes and declarations

Change-Id: I1a9738ad73c79661a8beb4d9881eb= a0b4d3aea53
Signed-off-by: Gert Doering <gert@...1296...>
Acked= -by: Frank Lichtenheld <frank@...2641...>
Message-Id: <20250219= 105930.29508-1-gert@...1296...>
URL: https://www.mail-archive.com/ope= nvpn-devel@lists.sourceforge.net/msg30929.html
Signed-off-by: Gert Doeri= ng <gert@...1296...>
---
M src/openvpn/win32.c
M src/openvpn= serv/common.c
M src/openvpnserv/service.c
M src/openvpnserv/service.h=
4 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c
i= ndex 86556a8..edac71e 100644
--- a/src/openvpn/win32.c
+++ b/src/openvpn/win32.c
@@ -103,7 +103,7 @@
* Set OpenSSL environment variables to a safe directory
*/
static void
-set_openssl_env_vars();
+set_openssl_env_vars(void);
=
void
init_win32(void)
@@= -1518,7 +1518,7 @@
}

s= tatic void
-set_openssl= _env_vars()
+set_open= ssl_env_vars(void)
{
const WCHAR *ssl= _fallback_dir =3D L"C:\\Windows\\System32";

diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common= .c
index a88a724..74bec6e 100644
--- a/src/= openvpnserv/common.c
+++ b/src/openvpnserv/common.c<= br>@@ -181,7 +181,7 @@


= LPCTSTR
-GetLast= ErrorText()
+GetLastE= rrorText(void)
{
DWORD error;<= br> static TCHAR buf[256];
diff --git a/src/openv= pnserv/service.c b/src/openvpnserv/service.c
index 054fc5f.= .84fd11a 100644
--- a/src/openvpnserv/service.c
<= span>+++ b/src/openvpnserv/service.c
@@ -54,7 +54,7 @@
}

static int
-CmdInstallServices()

+CmdInstallServices(void)
= {
SC_HANDLE service;
SC_HA= NDLE svc_ctl_mgr;
@@ -146,7 +146,7 @@


static int
-CmdRemoveServices()
+CmdRemoveServices(void)
{
<= span> SC_HANDLE service;

SC_HANDLE svc_ctl_mgr;
diff --git a/src/openvpnserv/service.h b/src/openvpnserv/serv= ice.h
index da20433..c5f587b 100644
--- a/s= rc/openvpnserv/service.h
+++ b/src/openvpnserv/service.h
@@ -86,7 +86,7 @@

BOOL Rep= ortStatusToSCMgr(SERVICE_STATUS_HANDLE service, SERVICE_STATUS *status);

-LPCTST= R GetLastErrorText();
+LPCTSTR GetLastErrorText(void);

DWORD = MsgToEventLog(DWORD flags, LPCTSTR lpszMsg, ...);
<= br>

To view, visit change 899. To unsubscribe, or for h= elp writing mail filters, visit settings.

<= /div>
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: I1a9738ad73c79661a8beb4d9881= eba0b4d3aea53
Gerrit-Change-Number: 899
Gerrit-PatchSet: 2
Gerrit-Owner: cron2 <gert@...1296...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-Reviewer: plaisthos <arne-openvpn@...1186...= .1227...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
Gerrit-MessageType: merged
--8rrTkTInFNc=--