diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-15 08:38:20 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-03-15 08:38:20 +0000 |
commit | 9b692fa3fe30c96dd81b43078a1f464f60c9a468 (patch) | |
tree | 57e5231e42acbfeef66ea84e9bf036da37587b5f /plugins/Watrack_MPD/src | |
parent | a77e43825fdfe580ede909d4d48048e2d82c586e (diff) |
warning fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@4042 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src')
-rwxr-xr-x | plugins/Watrack_MPD/src/main.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp index eec0a6b1af..55888e4caa 100755 --- a/plugins/Watrack_MPD/src/main.cpp +++ b/plugins/Watrack_MPD/src/main.cpp @@ -89,7 +89,7 @@ int Parser() strcpy(tmp, "password "); strcat(tmp, tmp2); strcat(tmp, "\n"); - Netlib_Send(ghConnection, tmp, strlen(tmp), 0); + Netlib_Send(ghConnection, tmp, (int)strlen(tmp), 0); recvResult = CallService(MS_NETLIB_GETMOREPACKETS,(WPARAM)ghPacketReciever, (LPARAM)&nlpr); if(recvResult == SOCKET_ERROR) { @@ -99,14 +99,14 @@ int Parser() } mir_free(tmp2); } - Netlib_Send(ghConnection, "status\n", strlen("status\n"), 0); + Netlib_Send(ghConnection, "status\n", (int)strlen("status\n"), 0); recvResult = CallService(MS_NETLIB_GETMOREPACKETS,(WPARAM)ghPacketReciever, (LPARAM)&nlpr); if(recvResult == SOCKET_ERROR) { mir_forkthread(&ReStart, 0); return 1; } - Netlib_Send(ghConnection, "currentsong\n", strlen("currentsong\n"), 0); + Netlib_Send(ghConnection, "currentsong\n", (int)strlen("currentsong\n"), 0); recvResult = CallService(MS_NETLIB_GETMOREPACKETS,(WPARAM)ghPacketReciever, (LPARAM)&nlpr); if(recvResult == SOCKET_ERROR) { @@ -381,22 +381,22 @@ LPCOMMANDPROC SendCommand(HWND wnd, int command, int value) switch (command) { case WAT_CTRL_PREV: - Netlib_Send(ghConnection, "previous\n", strlen("previous\n"), 0); + Netlib_Send(ghConnection, "previous\n", (int)strlen("previous\n"), 0); break; case WAT_CTRL_PLAY: //add resuming support if(gbState != WAT_MES_PAUSED) - Netlib_Send(ghConnection, "play\n", strlen("play\n"), 0); + Netlib_Send(ghConnection, "play\n", (int)strlen("play\n"), 0); else - Netlib_Send(ghConnection, "pause 0\n", strlen("pause 0\n"), 0); + Netlib_Send(ghConnection, "pause 0\n", (int)strlen("pause 0\n"), 0); break; case WAT_CTRL_PAUSE: - Netlib_Send(ghConnection, "pause 1\n", strlen("pause 1\n"), 0); + Netlib_Send(ghConnection, "pause 1\n", (int)strlen("pause 1\n"), 0); break; case WAT_CTRL_STOP: - Netlib_Send(ghConnection, "stop\n", strlen("stop\n"), 0); + Netlib_Send(ghConnection, "stop\n", (int)strlen("stop\n"), 0); break; case WAT_CTRL_NEXT: - Netlib_Send(ghConnection, "next\n", strlen("next\n"), 0); + Netlib_Send(ghConnection, "next\n", (int)strlen("next\n"), 0); break; case WAT_CTRL_VOLDN: break; |