From 2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jan 2024 11:24:49 +0300 Subject: NETLIBHTTPREQUEST::cbSize = old unused field removed --- protocols/JabberG/src/jabber_file.cpp | 3 --- protocols/JabberG/src/jabber_ft.cpp | 1 - protocols/JabberG/src/jabber_util.cpp | 1 - 3 files changed, 5 deletions(-) (limited to 'protocols/JabberG/src') diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index b84560dde1..ebd33b3d93 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -50,7 +50,6 @@ void __cdecl CJabberProto::OfflineFileThread(OFDTHREAD *ofd) // initialize the netlib request NETLIBHTTPREQUEST nlhr = {}; - nlhr.cbSize = sizeof(nlhr); nlhr.requestType = REQUEST_GET; nlhr.flags = NLHRF_HTTP11 | NLHRF_DUMPASTEXT | NLHRF_REDIRECT; nlhr.szUrl = (char *)url; @@ -129,7 +128,6 @@ void CJabberProto::OnReceiveOfflineFile(DB::FILE_BLOB &blob, void *pHandle) void __cdecl CJabberProto::FileReceiveHttpThread(filetransfer *ft) { NETLIBHTTPREQUEST req = {}; - req.cbSize = sizeof(req); req.requestType = REQUEST_GET; req.szUrl = ft->httpPath; @@ -157,7 +155,6 @@ void CJabberProto::FileProcessHttpDownload(MCONTACT hContact, const char *jid, c auto *pszName = szName.c_str(); NETLIBHTTPREQUEST req = {}; - req.cbSize = sizeof(req); req.requestType = REQUEST_HEAD; req.szUrl = (char*)pszUrl; diff --git a/protocols/JabberG/src/jabber_ft.cpp b/protocols/JabberG/src/jabber_ft.cpp index 2124b88a83..e0ede298da 100644 --- a/protocols/JabberG/src/jabber_ft.cpp +++ b/protocols/JabberG/src/jabber_ft.cpp @@ -694,7 +694,6 @@ LBL_Fail: NETLIBHTTPHEADER hdr[10]; NETLIBHTTPREQUEST nlhr = {}; - nlhr.cbSize = sizeof(nlhr); nlhr.requestType = REQUEST_PUT; nlhr.flags = NLHRF_NODUMPSEND | NLHRF_SSL | NLHRF_REDIRECT; nlhr.szUrl = (char *)szUrl; diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp index 5d63b0d5a0..e018c39b40 100644 --- a/protocols/JabberG/src/jabber_util.cpp +++ b/protocols/JabberG/src/jabber_util.cpp @@ -882,7 +882,6 @@ void __cdecl CJabberProto::LoadHttpAvatars(void* param) HNETLIBCONN hHttpCon = nullptr; for (auto &it : avs) { NETLIBHTTPREQUEST nlhr = { 0 }; - nlhr.cbSize = sizeof(nlhr); nlhr.requestType = REQUEST_GET; nlhr.flags = NLHRF_HTTP11 | NLHRF_REDIRECT | NLHRF_PERSISTENT; nlhr.szUrl = it->Url; -- cgit v1.2.3