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/IRCG/src | |
parent | 30dad0388a14244ef9b06afc113085f6a49bcbb8 (diff) |
useless member NETLIBOPENCONNECTION::cbSize removed
Diffstat (limited to 'protocols/IRCG/src')
-rw-r--r-- | protocols/IRCG/src/irclib.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/IRCG/src/irclib.cpp b/protocols/IRCG/src/irclib.cpp index 3dd16b0769..e72df9fa90 100644 --- a/protocols/IRCG/src/irclib.cpp +++ b/protocols/IRCG/src/irclib.cpp @@ -194,8 +194,7 @@ bool CIrcProto::Connect(const CIrcSessionInfo& info) { codepage = m_codepage; - NETLIBOPENCONNECTION ncon = { 0 }; - ncon.cbSize = sizeof(ncon); + NETLIBOPENCONNECTION ncon = {}; ncon.szHost = info.sServer.c_str(); ncon.wPort = info.iPort; con = Netlib_OpenConnection(m_hNetlibUser, &ncon); @@ -883,8 +882,7 @@ int CDccSession::SetupConnection() // If a remote computer initiates a chat session this is used to connect to the remote computer (user already accepted at this point). // also used for connecting to a remote computer for remote file transfers if (di->iType == DCC_CHAT && !di->bSender || di->iType == DCC_SEND && di->bSender && di->bReverse) { - NETLIBOPENCONNECTION ncon = { 0 }; - ncon.cbSize = sizeof(ncon); + NETLIBOPENCONNECTION ncon = {}; ncon.szHost = ConvertIntegerToIP(di->dwAdr); ncon.wPort = (WORD)di->iPort; con = Netlib_OpenConnection(m_proto->hNetlibDCC, &ncon); @@ -978,8 +976,7 @@ int CDccSession::SetupConnection() } // connect to the remote computer from which you are receiving the file (now all actions to take (resume/overwrite etc) have been decided - NETLIBOPENCONNECTION ncon = { 0 }; - ncon.cbSize = sizeof(ncon); + NETLIBOPENCONNECTION ncon = {}; ncon.szHost = ConvertIntegerToIP(di->dwAdr); ncon.wPort = (WORD)di->iPort; |