summaryrefslogtreecommitdiff
path: root/res/res_pjsip/pjsip_configuration.c
diff options
context:
space:
mode:
authorCorey Farrell <git@cfware.com>2017-11-19 14:28:41 -0500
committerCorey Farrell <git@cfware.com>2017-11-19 14:28:41 -0500
commit366cc259bc356ba2ebea282aa85478cfc1de0bf5 (patch)
treee30264f9a640ea7bda58df8702f120273e80fbc6 /res/res_pjsip/pjsip_configuration.c
parentef8ee3ee69fb1b2f9bb2694217d8dfdf124d251f (diff)
res_pjsip: Fix warning by deferring implicit type cast.
Mac doesn't like the comparison of -1 to an enum, so store the result of ast_sip_str_to_dtmf to an int so we can check for the negative return value. ast_sip_str_to_dtmf returns an int so this is only delaying the implicit type cast. Change-Id: I0c262c1719ee951aae1f437d733a301cf5f8ad29
Diffstat (limited to 'res/res_pjsip/pjsip_configuration.c')
-rw-r--r--res/res_pjsip/pjsip_configuration.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_pjsip/pjsip_configuration.c b/res/res_pjsip/pjsip_configuration.c
index 81234d695..d2e7b2b69 100644
--- a/res/res_pjsip/pjsip_configuration.c
+++ b/res/res_pjsip/pjsip_configuration.c
@@ -368,7 +368,7 @@ static int contact_acl_to_str(const void *obj, const intptr_t *args, char **buf)
static int dtmf_handler(const struct aco_option *opt, struct ast_variable *var, void *obj)
{
struct ast_sip_endpoint *endpoint = obj;
- enum ast_sip_dtmf_mode dtmf = ast_sip_str_to_dtmf(var->value);
+ int dtmf = ast_sip_str_to_dtmf(var->value);
if (dtmf == -1) {
return -1;