Skip to content
Snippets Groups Projects
Commit 88977b45 authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

unused variable in useragent + signed comparison

parent 9d510a5a
No related branches found
No related tags found
No related merge requests found
......@@ -551,7 +551,7 @@ ManagerImpl::playDtmf(char code, bool isTalking)
if( CHECK_INTERFACE( layer , PULSEAUDIO ))
{
// Cache the samples on the sound server
(PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) );
// (PulseLayer*)audiolayer->putInCache( code, _buf , size * sizeof(SFLDataFormat) );
}
delete[] _buf; _buf = 0;
......@@ -2226,7 +2226,7 @@ ManagerImpl::loadAccountMap()
TokenList::iterator iter = sections.begin();
while(iter != sections.end()) {
// Check if it starts with "Account:" (SIP and IAX pour le moment)
if (iter->find("Account:") == -1) {
if ((int)(iter->find("Account:")) == -1) {
iter++;
continue;
}
......
......@@ -348,7 +348,7 @@ void UserAgent::busy_sleep(unsigned msec)
#endif
}
bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout) {
bool UserAgent::addAccount(AccountID id, pjsip_regc **regc2, const std::string& server, const std::string& user, const std::string& passwd, const int& timeout UNUSED) {
pj_status_t status;
AccountID *currentId = new AccountID(id);
char contactTmp[256];
......@@ -693,7 +693,7 @@ pj_bool_t UserAgent::mod_on_rx_request(pjsip_rx_data *rdata) {
// Retrieve all the message. Should contains only the method name but ...
request = rdata->msg_info.msg->line.req.method.name.ptr;
// Check if the message is a notification
if( request.find( method_name ) != -1 ) {
if( request.find( method_name ) != (size_t)-1 ) {
set_voicemail_info( account_id, rdata->msg_info.msg->body );
}
pjsip_endpt_respond_stateless(getInstance()->getEndPoint(), rdata, PJSIP_SC_OK, NULL, NULL, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment