summaryrefslogtreecommitdiff
path: root/plugins/Ping/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Ping/src/utils.cpp')
-rw-r--r--plugins/Ping/src/utils.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/plugins/Ping/src/utils.cpp b/plugins/Ping/src/utils.cpp
index de7a1d0bf9..43c777f315 100644
--- a/plugins/Ping/src/utils.cpp
+++ b/plugins/Ping/src/utils.cpp
@@ -16,15 +16,7 @@ LRESULT CALLBACK NullWindowProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM l
return DefWindowProc(hWnd, message, wParam, lParam);
}
-static INT_PTR CALLBACK sttMainThreadCallback(void *dwParam)
-{
- POPUPDATAW* ppd = (POPUPDATAW*)dwParam;
- PUAddPopupW(ppd);
- free(ppd);
- return 0;
-}
-
-void __stdcall ShowPopup(wchar_t *line1, wchar_t *line2, int flags)
+void __stdcall ShowPopup(wchar_t *line1, wchar_t *line2, int)
{
if (Miranda_IsTerminated())
return;
@@ -63,8 +55,7 @@ INT_PTR PluginPing(WPARAM, LPARAM lParam)
clock_t start_tcp = clock();
//GetLocalTime(&systime);
- NETLIBOPENCONNECTION conn = { 0 };
- conn.cbSize = sizeof(NETLIBOPENCONNECTION);
+ NETLIBOPENCONNECTION conn = {};
conn.szHost = mir_u2a(pa->pszName);
conn.wPort = pa->port;
conn.timeout = options.ping_timeout;