Skip to content

Commit

Permalink
auth: fix a compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
rvlad-patrascu committed Jul 22, 2019
1 parent aafbb85 commit 1ebb8ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/auth/challenge.c
Expand Up @@ -257,7 +257,7 @@ int fixup_qop(void** param)
*/
int www_challenge(struct sip_msg* _msg, str* _realm, void* _qop)
{
return challenge(_msg, _realm, (int)_qop, 401,
return challenge(_msg, _realm, (int)(long)_qop, 401,
MESSAGE_401, WWW_AUTH_CHALLENGE);
}

Expand All @@ -267,7 +267,7 @@ int www_challenge(struct sip_msg* _msg, str* _realm, void* _qop)
*/
int proxy_challenge(struct sip_msg* _msg, str* _realm, void* _qop)
{
return challenge(_msg, _realm, (int)_qop, 407,
return challenge(_msg, _realm, (int)(long)_qop, 407,
MESSAGE_407, PROXY_AUTH_CHALLENGE);
}

Expand Down

0 comments on commit 1ebb8ac

Please sign in to comment.