]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Fix warning by deferring implicit type cast.
authorCorey Farrell <git@cfware.com>
Sun, 19 Nov 2017 19:28:41 +0000 (14:28 -0500)
committerCorey Farrell <git@cfware.com>
Sun, 19 Nov 2017 19:28:41 +0000 (14:28 -0500)
commit366cc259bc356ba2ebea282aa85478cfc1de0bf5
treee30264f9a640ea7bda58df8702f120273e80fbc6
parentef8ee3ee69fb1b2f9bb2694217d8dfdf124d251f
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
res/res_pjsip/pjsip_configuration.c