From 159b565b390687258ee65a3b66596e118752063c Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Fri, 22 May 2015 12:33:13 +0000 Subject: replace strcmp to mir_strcmp git-svn-id: http://svn.miranda-ng.org/main/trunk@13752 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tlen/src/tlen_file.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'protocols/Tlen/src/tlen_file.cpp') diff --git a/protocols/Tlen/src/tlen_file.cpp b/protocols/Tlen/src/tlen_file.cpp index 9d05fef08f..105f3785f1 100644 --- a/protocols/Tlen/src/tlen_file.cpp +++ b/protocols/Tlen/src/tlen_file.cpp @@ -552,7 +552,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) int numFiles; TLEN_LIST_ITEM *item; -// if (!node->name || strcmp(node->name, "f")) return; +// if (!node->name || mir_strcmp(node->name, "f")) return; if (info == NULL) return; char *from=TlenXmlGetAttrValue(node, "f"); @@ -564,7 +564,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) } char *e=TlenXmlGetAttrValue(node, "e"); if (e != NULL) { - if (!strcmp(e, "1")) { + if (!mir_strcmp(e, "1")) { // FILE_RECV : e='1' : File transfer request TLEN_FILE_TRANSFER *ft = TlenFileCreateFT(info->proto, jid); ft->hContact = TlenHContactFromJID(info->proto, jid); @@ -610,7 +610,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) TlenP2PFreeFileTransfer(ft); } } - else if (!strcmp(e, "3")) { + else if (!mir_strcmp(e, "3")) { // FILE_RECV : e='3' : invalid transfer error if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { if ((item=TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL) { @@ -622,27 +622,27 @@ void TlenProcessF(XmlNode *node, ThreadData *info) } } } - else if (!strcmp(e, "4")) { + else if (!mir_strcmp(e, "4")) { // FILE_SEND : e='4' : File sending request was denied by the remote client if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { if ((item=TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL) { - if (!strcmp(item->ft->jid, jid)) { + if (!mir_strcmp(item->ft->jid, jid)) { ProtoBroadcastAck(info->proto->m_szModuleName, item->ft->hContact, ACKTYPE_FILE, ACKRESULT_DENIED, item->ft, 0); TlenListRemove(info->proto, LIST_FILE, p); } } } } - else if (!strcmp(e, "5")) { + else if (!mir_strcmp(e, "5")) { // FILE_SEND : e='5' : File sending request was accepted if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { if ((item=TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL) { - if (!strcmp(item->ft->jid, jid)) + if (!mir_strcmp(item->ft->jid, jid)) forkthread((void (__cdecl *)(void*))TlenFileSendingThread, 0, item->ft); } } } - else if (!strcmp(e, "6")) { + else if (!mir_strcmp(e, "6")) { // FILE_RECV : e='6' : IP and port information to connect to get file if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { if ((item=TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL) { @@ -656,7 +656,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) } } } - else if (!strcmp(e, "7")) { + else if (!mir_strcmp(e, "7")) { // FILE_RECV : e='7' : IP and port information to connect to send file // in case the conection to the given server was not successful if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { @@ -673,7 +673,7 @@ void TlenProcessF(XmlNode *node, ThreadData *info) } } } - else if (!strcmp(e, "8")) { + else if (!mir_strcmp(e, "8")) { // FILE_RECV : e='8' : transfer error if ((p=TlenXmlGetAttrValue(node, "i")) != NULL) { if ((item=TlenListGetItemPtr(info->proto, LIST_FILE, p)) != NULL) { -- cgit v1.2.3