summaryrefslogtreecommitdiff
path: root/plugins/Watrack_MPD/src
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-22 10:06:32 +0000
commit5a17c9299e03bebf46169927abdeee34aaf8e854 (patch)
treecbd13080f33ac0b6396b9d3b8ba31a3c98de59f8 /plugins/Watrack_MPD/src
parented64312924e77707e7e5b5965c301692519f293a (diff)
replace strlen to mir_strlen
git-svn-id: http://svn.miranda-ng.org/main/trunk@13747 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Watrack_MPD/src')
-rwxr-xr-xplugins/Watrack_MPD/src/main.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Watrack_MPD/src/main.cpp b/plugins/Watrack_MPD/src/main.cpp
index 00063245b9..3364662c6e 100755
--- a/plugins/Watrack_MPD/src/main.cpp
+++ b/plugins/Watrack_MPD/src/main.cpp
@@ -84,12 +84,12 @@ int Parser()
// ReStart();
return 1;
}
- if(strlen(tmp2) > 2)
+ if(mir_strlen(tmp2) > 2)
{
strcpy(tmp, "password ");
strcat(tmp, tmp2);
strcat(tmp, "\n");
- Netlib_Send(ghConnection, tmp, (int)strlen(tmp), 0);
+ Netlib_Send(ghConnection, tmp, (int)mir_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", (int)strlen("status\n"), 0);
+ Netlib_Send(ghConnection, "status\n", (int)mir_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", (int)strlen("currentsong\n"), 0);
+ Netlib_Send(ghConnection, "currentsong\n", (int)mir_strlen("currentsong\n"), 0);
recvResult = CallService(MS_NETLIB_GETMOREPACKETS,(WPARAM)ghPacketReciever, (LPARAM)&nlpr);
if(recvResult == SOCKET_ERROR)
{
@@ -379,22 +379,22 @@ int SendCommand(HWND, int command, int)
switch (command)
{
case WAT_CTRL_PREV:
- Netlib_Send(ghConnection, "previous\n", (int)strlen("previous\n"), 0);
+ Netlib_Send(ghConnection, "previous\n", (int)mir_strlen("previous\n"), 0);
return 0;
case WAT_CTRL_PLAY: //add resuming support
if(gbState != WAT_PLS_PAUSED)
- Netlib_Send(ghConnection, "play\n", (int)strlen("play\n"), 0);
+ Netlib_Send(ghConnection, "play\n", (int)mir_strlen("play\n"), 0);
else
- Netlib_Send(ghConnection, "pause 0\n", (int)strlen("pause 0\n"), 0);
+ Netlib_Send(ghConnection, "pause 0\n", (int)mir_strlen("pause 0\n"), 0);
return 0;
case WAT_CTRL_PAUSE:
- Netlib_Send(ghConnection, "pause 1\n", (int)strlen("pause 1\n"), 0);
+ Netlib_Send(ghConnection, "pause 1\n", (int)mir_strlen("pause 1\n"), 0);
return 0;
case WAT_CTRL_STOP:
- Netlib_Send(ghConnection, "stop\n", (int)strlen("stop\n"), 0);
+ Netlib_Send(ghConnection, "stop\n", (int)mir_strlen("stop\n"), 0);
return 0;
case WAT_CTRL_NEXT:
- Netlib_Send(ghConnection, "next\n", (int)strlen("next\n"), 0);
+ Netlib_Send(ghConnection, "next\n", (int)mir_strlen("next\n"), 0);
return 0;
case WAT_CTRL_VOLDN:
return 0;