diff options
author | George Hazan <george.hazan@gmail.com> | 2014-02-27 11:14:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-02-27 11:14:02 +0000 |
commit | 3e7ae9b675187052136075ea8ebfbad98673210b (patch) | |
tree | 82d3e2c5f9dd3488eb4ec8ecf766297b7bc2c9c8 /plugins | |
parent | 2e51a3103f26ca7a9fec8f96baf56f4d51fd0112 (diff) |
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@8284 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dropbox/src/dropbox.cpp | 2 | ||||
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 2 | ||||
-rw-r--r-- | plugins/Dropbox/src/dropbox_transfers.cpp | 2 | ||||
-rw-r--r-- | plugins/Dropbox/src/http_request.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/dropbox.cpp b/plugins/Dropbox/src/dropbox.cpp index 3498680c24..64fc3bfae3 100644 --- a/plugins/Dropbox/src/dropbox.cpp +++ b/plugins/Dropbox/src/dropbox.cpp @@ -59,7 +59,7 @@ void CDropbox::RequestAcceessToken() HttpRequest *request = new HttpRequest(hNetlibUser, REQUEST_POST, DROPBOX_API_URL "/oauth2/token");
request->pData = mir_strdup(data);
- request->dataLength = strlen(data);
+ request->dataLength = (int)strlen(data);
request->AddHeader("Content-Type", "application/x-www-form-urlencoded");
request->AddBasicAuthHeader(DROPBOX_API_KEY, DROPBOX_API_SECRET);
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index bae1d1d548..1368db4b5c 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -97,7 +97,7 @@ INT_PTR CDropbox::ProtoSendMessage(WPARAM wParam, LPARAM lParam) dbei.szModule = MODULE;
dbei.timestamp = time(NULL);
dbei.eventType = EVENTTYPE_MESSAGE;
- dbei.cbBlob = strlen(message);
+ dbei.cbBlob = (int)strlen(message);
dbei.pBlob = (PBYTE)message;
dbei.flags = DBEF_SENT | DBEF_UTF;
db_event_add(pccsd->hContact, &dbei);
diff --git a/plugins/Dropbox/src/dropbox_transfers.cpp b/plugins/Dropbox/src/dropbox_transfers.cpp index 3c3e949430..f146a71a55 100644 --- a/plugins/Dropbox/src/dropbox_transfers.cpp +++ b/plugins/Dropbox/src/dropbox_transfers.cpp @@ -264,7 +264,7 @@ void _cdecl CDropbox::SendFileAsync(void *arg) chunkSize = DROPBOX_FILE_CHUNK_SIZE * 4;
char *data = new char[chunkSize + 1];
- int count = fread(data, sizeof(char), chunkSize, file);
+ int count = (int)fread(data, sizeof(char), chunkSize, file);
if (!offset)
{
diff --git a/plugins/Dropbox/src/http_request.h b/plugins/Dropbox/src/http_request.h index 45e270993e..3af4929720 100644 --- a/plugins/Dropbox/src/http_request.h +++ b/plugins/Dropbox/src/http_request.h @@ -59,7 +59,7 @@ public: szLogin,
szPassword);
- char *ePair = (char *)mir_base64_encode((BYTE*)cPair, strlen(cPair));
+ char *ePair = (char *)mir_base64_encode((BYTE*)cPair, (UINT)strlen(cPair));
char value[128];
mir_snprintf(
|