Skip to content

Commit

Permalink
add more (void) to windows specific function prototypes and declarations
Browse files Browse the repository at this point in the history
Change-Id: I1a9738ad73c79661a8beb4d9881eba0b4d3aea53
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]/msg30929.html
Signed-off-by: Gert Doering <[email protected]>
  • Loading branch information
cron2 committed Feb 19, 2025
1 parent 43abb41 commit 8720bc8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/openvpn/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/openvpnserv/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ GetOpenvpnSettings(settings_t *s)


LPCTSTR
GetLastErrorText()
GetLastErrorText(void)
{
DWORD error;
static TCHAR buf[256];
Expand Down
4 changes: 2 additions & 2 deletions src/openvpnserv/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -146,7 +146,7 @@ CmdStartService(openvpn_service_type type)


static int
CmdRemoveServices()
CmdRemoveServices(void)
{
SC_HANDLE service;
SC_HANDLE svc_ctl_mgr;
Expand Down
2 changes: 1 addition & 1 deletion src/openvpnserv/service.h
Original file line number Diff line number Diff line change
Expand Up @@ -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, ...);

Expand Down

0 comments on commit 8720bc8

Please sign in to comment.