diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-24 13:20:12 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-24 13:20:12 +0300 |
commit | 0db449bf70966941453cfbb8ec05fd430a96dc12 (patch) | |
tree | e01421e30b58ae2799929e16a6a326f5d4f68a5d /protocols/JabberG | |
parent | 30dad0388a14244ef9b06afc113085f6a49bcbb8 (diff) |
useless member NETLIBOPENCONNECTION::cbSize removed
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_byte.cpp | 6 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 3 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_ws.cpp | 1 |
3 files changed, 4 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_byte.cpp b/protocols/JabberG/src/jabber_byte.cpp index fe2aaed8fd..7228b16fc1 100644 --- a/protocols/JabberG/src/jabber_byte.cpp +++ b/protocols/JabberG/src/jabber_byte.cpp @@ -441,10 +441,10 @@ void CJabberProto::ByteSendViaProxy(JABBER_BYTE_TRANSFER *jbt) WORD port = (WORD)atoi(szPort);
replaceStr(jbt->streamhostJID, jbt->szProxyJid);
- NETLIBOPENCONNECTION nloc = { 0 };
- nloc.cbSize = sizeof(nloc);
+ NETLIBOPENCONNECTION nloc = {};
nloc.szHost = szHost;
nloc.wPort = port;
+
HNETLIBCONN hConn = Netlib_OpenConnection(m_hNetlibUser, &nloc);
mir_free((void*)nloc.szHost);
@@ -608,9 +608,9 @@ void __cdecl CJabberProto::ByteReceiveThread(JABBER_BYTE_TRANSFER *jbt) debugLogA("bytestream_recv connecting to %s:%d", szHost, port);
NETLIBOPENCONNECTION nloc = { 0 };
- nloc.cbSize = sizeof(nloc);
nloc.szHost = mir_strdup(szHost);
nloc.wPort = port;
+
HNETLIBCONN hConn = Netlib_OpenConnection(m_hNetlibUser, &nloc);
mir_free((void*)nloc.szHost);
diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 1cb53aa248..aff4a01567 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -36,8 +36,7 @@ void __cdecl CJabberProto::FileReceiveThread(filetransfer *ft) ft->type = FT_OOB;
- NETLIBOPENCONNECTION nloc = { 0 };
- nloc.cbSize = sizeof(nloc);
+ NETLIBOPENCONNECTION nloc = {};
nloc.szHost = ft->httpHostName;
nloc.wPort = ft->httpPort;
info.s = Netlib_OpenConnection(m_hNetlibUser, &nloc);
diff --git a/protocols/JabberG/src/jabber_ws.cpp b/protocols/JabberG/src/jabber_ws.cpp index 228bb5f5c9..e138c0c733 100644 --- a/protocols/JabberG/src/jabber_ws.cpp +++ b/protocols/JabberG/src/jabber_ws.cpp @@ -42,7 +42,6 @@ BOOL CJabberProto::WsInit(void) HNETLIBCONN CJabberProto::WsConnect(char* host, WORD port)
{
NETLIBOPENCONNECTION nloc = {};
- nloc.cbSize = sizeof(nloc);
nloc.szHost = host;
nloc.wPort = port;
nloc.timeout = 6;
|