diff options
author | George Hazan <george.hazan@gmail.com> | 2016-10-04 17:49:19 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-10-04 17:49:19 +0000 |
commit | 65014cc73c6f302923e2cf6f5c2b59f23e7884a3 (patch) | |
tree | 555d8e3325a1a97cf6a908cc905bdb69113d839c | |
parent | de73f6239e174ae95a863ecd7b66809b54110626 (diff) |
wanwarning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@17353 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/StatusPlugins/StartupStatus/profiles.cpp | 6 | ||||
-rw-r--r-- | protocols/MSN/src/skylogin/login.c | 5 | ||||
-rw-r--r-- | protocols/Tox/src/tox_network.cpp | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/plugins/StatusPlugins/StartupStatus/profiles.cpp b/plugins/StatusPlugins/StartupStatus/profiles.cpp index faa14b04ca..51a4bccc71 100644 --- a/plugins/StatusPlugins/StartupStatus/profiles.cpp +++ b/plugins/StatusPlugins/StartupStatus/profiles.cpp @@ -200,12 +200,10 @@ static void CALLBACK releaseTtbTimerFunction(HWND, UINT, UINT_PTR, DWORD) CallService(MS_TTB_SETBUTTONSTATE, (WPARAM)ttbButtons[i], 0); } -INT_PTR LoadAndSetProfile(WPARAM wParam, LPARAM) +INT_PTR LoadAndSetProfile(WPARAM iProfileNo, LPARAM) { // wParam == profile no. - int profileCount = GetProfileCount(0, 0); - int profile = (int)wParam; - + int profile = (int)iProfileNo; TSettingsList profileSettings(10, CompareSettings); if (!GetProfile(profile, profileSettings)) { profile = (profile >= 0) ? profile : db_get_w(NULL, MODULENAME, SETTING_DEFAULTPROFILE, 0); diff --git a/protocols/MSN/src/skylogin/login.c b/protocols/MSN/src/skylogin/login.c index b7931390b2..406ebe279e 100644 --- a/protocols/MSN/src/skylogin/login.c +++ b/protocols/MSN/src/skylogin/login.c @@ -284,7 +284,7 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ObjOauth.Family = OBJ_FAMILY_STRING;
ObjOauth.Id = OBJ_ID_OAUTH;
ObjOauth.Value.Memory.Memory = (uchar *)User;
- ObjOauth.Value.Memory.MsZ = strlen(User);
+ ObjOauth.Value.Memory.MsZ = (ulong)strlen(User);
WriteObject(&Browser, ObjOauth);
ObjVer.Family = OBJ_FAMILY_STRING;
@@ -343,9 +343,6 @@ static int SendAuthentificationBlobLS(Skype_Inst *pInst, LSConnection *pConn, co ManageObjects(&Browser, BSize, &Response);
for (Idx = 0; Idx < Response.NbObj; Idx++)
{
- uint LdIdx = 0;
-
-
switch (Response.Objs[Idx].Id)
{
case OBJ_ID_LOGINANSWER:
diff --git a/protocols/Tox/src/tox_network.cpp b/protocols/Tox/src/tox_network.cpp index 7ae6d1613c..e895f04dde 100644 --- a/protocols/Tox/src/tox_network.cpp +++ b/protocols/Tox/src/tox_network.cpp @@ -131,7 +131,7 @@ void CToxProto::BootstrapNodesFromJson(CToxThread *toxThread, bool isIPv6) void CToxProto::BootstrapNodes(CToxThread *toxThread)
{
debugLogA(__FUNCTION__": bootstraping DHT");
- bool isUdp = getBool("EnableUDP", 1);
+ // bool isUdp = getBool("EnableUDP", 1);
bool isIPv6 = getBool("EnableIPv6", 0);
BootstrapNodesFromDb(toxThread, isIPv6);
BootstrapNodesFromJson(toxThread, isIPv6);
|