Commit b1303d77 authored by Oleksandr Dmytrenko's avatar Oleksandr Dmytrenko

warning as error(strchr)

in c++ strchr different then c:
const char * strchr ( const char * str, int character );
as result when compile c++ get error:
error: invalid conversion from 'const char*' to 'char*'

Change-Id: I7a0f184dceecb1f7de388effda5017faa560f988
Signed-off-by: default avatarOleksandr Dmytrenko <o.dmytrenko@samsung.com>
parent d333ddb2
......@@ -515,7 +515,7 @@ OicSecSvrType_t GetSvrTypeFromUri(const char* uri)
// Remove query from Uri for resource string comparison
size_t uriLen = strlen(uri);
char *query = strchr (uri, URI_QUERY_CHAR);
char *query = (char*)strchr (uri, URI_QUERY_CHAR);
if (query)
{
uriLen = query - uri;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment