Fixes for simulator build on lucid
strchr and strrchr now return const char* instead of char* Change-Id: Idc013222e86c80b1e91d5aeb09a1a24809a82358
This commit is contained in:
committed by
Jean-Baptiste Queru
parent
c6d813b0c5
commit
b04e3940d1
@@ -42,7 +42,7 @@ static bool ParseURL(
|
||||
path->setTo(slashPos);
|
||||
}
|
||||
|
||||
char *colonPos = strchr(host->string(), ':');
|
||||
const char *colonPos = strchr(host->string(), ':');
|
||||
|
||||
if (colonPos != NULL) {
|
||||
unsigned long x;
|
||||
|
||||
@@ -96,7 +96,7 @@ static bool MakeURL(const char *baseURL, const char *url, AString *out) {
|
||||
out->setTo(baseURL);
|
||||
out->append(url);
|
||||
} else {
|
||||
char *slashPos = strrchr(baseURL, '/');
|
||||
const char *slashPos = strrchr(baseURL, '/');
|
||||
|
||||
if (slashPos > &baseURL[6]) {
|
||||
out->setTo(baseURL, slashPos - baseURL);
|
||||
|
||||
@@ -133,7 +133,7 @@ bool ARTSPConnection::ParseURL(
|
||||
path->setTo(slashPos);
|
||||
}
|
||||
|
||||
char *colonPos = strchr(host->c_str(), ':');
|
||||
const char *colonPos = strchr(host->c_str(), ':');
|
||||
|
||||
if (colonPos != NULL) {
|
||||
unsigned long x;
|
||||
|
||||
@@ -187,7 +187,7 @@ void ASessionDescription::getFormatType(
|
||||
AString format;
|
||||
getFormat(index, &format);
|
||||
|
||||
char *lastSpacePos = strrchr(format.c_str(), ' ');
|
||||
const char *lastSpacePos = strrchr(format.c_str(), ' ');
|
||||
CHECK(lastSpacePos != NULL);
|
||||
|
||||
char *end;
|
||||
|
||||
@@ -1112,7 +1112,7 @@ private:
|
||||
out->setTo(baseURL);
|
||||
out->append(url);
|
||||
} else {
|
||||
char *slashPos = strrchr(baseURL, '/');
|
||||
const char *slashPos = strrchr(baseURL, '/');
|
||||
|
||||
if (slashPos > &baseURL[6]) {
|
||||
out->setTo(baseURL, slashPos - baseURL);
|
||||
|
||||
Reference in New Issue
Block a user