]> 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:31:50 +0000 (13:31 -0600)
commit65ff827751a3496817750cd7e3ebed8be40ee08a
tree94debe92f2cd51e6072427b9bcc3affeb515c964
parent8fdc7fd1d3e77ae171671231e318d15710a0f715
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