while (users_iter != usersList.end())
{
Authorize(*users_iter);
- users_iter++;
+ ++users_iter;
}
//isRunning = true;
printfd(__FILE__, "User removed from list %s\n", u->GetLogin().c_str());
break;
}
- users_iter++;
+ ++users_iter;
}
}
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
void * AUTH_STRESS::Run(void * d)
{
-AUTH_STRESS * ia;
-ia = (AUTH_STRESS *)d;
+AUTH_STRESS * ia = static_cast<AUTH_STRESS *>(d);
ia->isRunning = true;
printfd(__FILE__, "AUTH_STRESS::Unauthorize - user: '%s'\n", (*users_iter)->GetLogin().c_str());
}
- users_iter++;
+ ++users_iter;
}
sleep(1);