|
@@ -73,14 +73,14 @@ void ntrip_client::readyReadSlot()
|
|
|
|
|
|
case 4:
|
|
|
str = (char *)message.data();
|
|
|
- if(strstr(str,"ICY 200 OK") > 0)
|
|
|
+ if(strstr(str,"ICY 200 OK") != NULL)
|
|
|
{
|
|
|
mFindCMState = 5;
|
|
|
qDebug("Login succcess");
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- if(strstr(str,"HTTP 401 Unauthorized") > 0)
|
|
|
+ if(strstr(str,"HTTP 401 Unauthorized") != NULL)
|
|
|
{
|
|
|
mFindCMState = -1;
|
|
|
qDebug("Authorize Fail. message is %s",message.data());
|