From c338ca0761bbf2001d65335a894b606910b4109c Mon Sep 17 00:00:00 2001 From: Heiko Hund Date: Tue, 8 Apr 2014 20:06:37 +0200 Subject: [PATCH] don't define callback functions as static --- openvpn.c | 6 +++--- passphrase.c | 2 +- proxy.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openvpn.c b/openvpn.c index ea09cb1..0b721f6 100644 --- a/openvpn.c +++ b/openvpn.c @@ -204,7 +204,7 @@ OnStateChange(connection_t *c, char *data) /* * DialogProc for OpenVPN username/password auth dialog windows */ -static INT_PTR CALLBACK +INT_PTR CALLBACK UserAuthDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { connection_t *c; @@ -262,7 +262,7 @@ UserAuthDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) /* * DialogProc for OpenVPN private key password dialog windows */ -static INT_PTR CALLBACK +INT_PTR CALLBACK PrivKeyPassDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { connection_t *c; @@ -424,7 +424,7 @@ OnStop(connection_t *c, UNUSED char *msg) /* * DialogProc for OpenVPN status dialog windows */ -static INT_PTR CALLBACK +INT_PTR CALLBACK StatusDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { connection_t *c; diff --git a/passphrase.c b/passphrase.c index d11b645..b8064fe 100644 --- a/passphrase.c +++ b/passphrase.c @@ -339,7 +339,7 @@ ChangePasswordPKCS12(HWND hwndDlg) } -static INT_PTR CALLBACK +INT_PTR CALLBACK ChangePassphraseDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, UNUSED LPARAM lParam) { HICON hIcon; diff --git a/proxy.c b/proxy.c index cbdf1e2..574a495 100644 --- a/proxy.c +++ b/proxy.c @@ -325,7 +325,7 @@ GetProxyRegistrySettings() } -static INT_PTR CALLBACK +INT_PTR CALLBACK ProxyAuthDialogFunc(HWND hwndDlg, UINT msg, WPARAM wParam, LPARAM lParam) { LPCSTR proxy_type;