From: Gert Doering Date: Wed, 19 Feb 2025 10:59:30 +0000 (+0100) Subject: add more (void) to windows specific function prototypes and declarations X-Git-Tag: v2.7_alpha1~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8720bc8e2e4fbccd16ca4bffd27c416575b1bfee;p=thirdparty%2Fopenvpn.git 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@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg30929.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/win32.c b/src/openvpn/win32.c index 86556a8c9..edac71e50 100644 --- a/src/openvpn/win32.c +++ b/src/openvpn/win32.c @@ -103,7 +103,7 @@ static char *win_sys_path = NULL; /* GLOBAL */ * 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 @@ get_openvpn_reg_value(const WCHAR *key, WCHAR *value, DWORD size) } static void -set_openssl_env_vars() +set_openssl_env_vars(void) { const WCHAR *ssl_fallback_dir = L"C:\\Windows\\System32"; diff --git a/src/openvpnserv/common.c b/src/openvpnserv/common.c index a88a7243e..74bec6ec0 100644 --- a/src/openvpnserv/common.c +++ b/src/openvpnserv/common.c @@ -181,7 +181,7 @@ out: LPCTSTR -GetLastErrorText() +GetLastErrorText(void) { DWORD error; static TCHAR buf[256]; diff --git a/src/openvpnserv/service.c b/src/openvpnserv/service.c index 054fc5f4c..84fd11a52 100644 --- a/src/openvpnserv/service.c +++ b/src/openvpnserv/service.c @@ -54,7 +54,7 @@ ReportStatusToSCMgr(SERVICE_STATUS_HANDLE service, SERVICE_STATUS *status) } static int -CmdInstallServices() +CmdInstallServices(void) { SC_HANDLE service; SC_HANDLE svc_ctl_mgr; @@ -146,7 +146,7 @@ CmdStartService(openvpn_service_type type) 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 da20433f2..c5f587b47 100644 --- a/src/openvpnserv/service.h +++ b/src/openvpnserv/service.h @@ -86,7 +86,7 @@ DWORD GetOpenvpnSettings(settings_t *s); BOOL ReportStatusToSCMgr(SERVICE_STATUS_HANDLE service, SERVICE_STATUS *status); -LPCTSTR GetLastErrorText(); +LPCTSTR GetLastErrorText(void); DWORD MsgToEventLog(DWORD flags, LPCTSTR lpszMsg, ...);