summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Khryukin <alexander@mezon.ru>2010-12-16 09:57:58 -0800
committerInaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>2010-12-16 09:57:58 -0800
commit1718d11005da4bd288aaf84ac3965dc490e16278 (patch)
tree4cd681a08099ce1afa19a827658ac7e22376b34c
parentcd0435d6ec9a721188900a811f61d3ea19b58932 (diff)
OSAL: fix OSAL_wcsmp() for Linux environments
Good day, Inaky. This is patch for wimaxd that allow connect to wimax network Yota from Carrick (part of connmand). in InfraStack/OSAgnostic/WiMax/Wrappers/CommonAPI/wimaxapi.c in function CmdConnectToNetwork() call to OSAL_wcscmp() with nspName="Yota" and nspsEx[0].NSPName="Yota" returns -1246756864
-rw-r--r--InfraStack/OSDependent/Linux/OSAL/Primitives/wimax_osal_strings.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/InfraStack/OSDependent/Linux/OSAL/Primitives/wimax_osal_strings.c b/InfraStack/OSDependent/Linux/OSAL/Primitives/wimax_osal_strings.c
index f97119a..6a71b11 100644
--- a/InfraStack/OSDependent/Linux/OSAL/Primitives/wimax_osal_strings.c
+++ b/InfraStack/OSDependent/Linux/OSAL/Primitives/wimax_osal_strings.c
@@ -1653,9 +1653,13 @@ int OSAL_CAPI_wmemcpy_s(OSAL_WIMAX_API_WSTRING dest, size_t sizeInWords, const O
}
// TODO::OSAL-WORK::IMPORTANT - OSAL_wcscmp, OSAL_wcslen - What happens when these methods are fed with ansi strings???
-int OSAL_wcscmp(const wchar_t * string1, const wchar_t * string2)
+int OSAL_wcscmp(OSAL_WIMAX_API_WSTRING string1, OSAL_WIMAX_API_WSTRING string2)
{
+#ifdef NATIVE_LINUX
+ return strcmp(string1, string2);
+#else
return wcscmp(string1, string2);
+#endif
}