summaryrefslogtreecommitdiff
path: root/protocols/Gadu-Gadu/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-04 11:24:49 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-04 11:24:49 +0300
commit2b6d50f7fdfaca84c3ee82909800ad67d2e99bdc (patch)
tree0fa8e6a2bb01de68127d9e45c27978fb43e267c3 /protocols/Gadu-Gadu/src
parent9ae82271f8dc01e32df1c76cfec64771bc5ee6d0 (diff)
NETLIBHTTPREQUEST::cbSize = old unused field removed
Diffstat (limited to 'protocols/Gadu-Gadu/src')
-rw-r--r--protocols/Gadu-Gadu/src/avatar.cpp4
-rw-r--r--protocols/Gadu-Gadu/src/oauth.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Gadu-Gadu/src/avatar.cpp b/protocols/Gadu-Gadu/src/avatar.cpp
index 0b713871c3..3ab82cd50f 100644
--- a/protocols/Gadu-Gadu/src/avatar.cpp
+++ b/protocols/Gadu-Gadu/src/avatar.cpp
@@ -381,8 +381,7 @@ void __cdecl GaduProto::setavatarthread(void *param)
char* token = getStringA(GG_KEY_TOKEN);
//construct request
- NETLIBHTTPREQUEST req = { 0 };
- req.cbSize = sizeof(req);
+ NETLIBHTTPREQUEST req = {};
req.requestType = REQUEST_POST;
req.szUrl = "http://avatars.nowe.gg/upload";
req.flags = NLHRF_NODUMP | NLHRF_HTTP11;
@@ -444,7 +443,6 @@ void __cdecl GaduProto::setavatarthread(void *param)
//construct 2nd request
memset(&req, 0, sizeof(req));
- req.cbSize = sizeof(req);
req.requestType = REQUEST_POST;
req.szUrl = "http://avatars.nowe.gg/upload";
req.flags = NLHRF_NODUMP | NLHRF_HTTP11;
diff --git a/protocols/Gadu-Gadu/src/oauth.cpp b/protocols/Gadu-Gadu/src/oauth.cpp
index e7674e959a..932c9c1553 100644
--- a/protocols/Gadu-Gadu/src/oauth.cpp
+++ b/protocols/Gadu-Gadu/src/oauth.cpp
@@ -327,7 +327,6 @@ int GaduProto::oauth_receivetoken()
str = mir_strdup(szUrl);
memset(&req, 0, sizeof(req));
- req.cbSize = sizeof(req);
req.requestType = REQUEST_POST;
req.szUrl = szUrl;
req.flags = NLHRF_NODUMP | NLHRF_HTTP11;
@@ -354,7 +353,6 @@ int GaduProto::oauth_receivetoken()
token_secret = nullptr;
memset(&req, 0, sizeof(req));
- req.cbSize = sizeof(req);
req.requestType = REQUEST_POST;
req.szUrl = szUrl;
req.flags = NLHRF_NODUMP | NLHRF_HTTP11 | NLHRF_PERSISTENT;