]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_dahdi: Fix build with clang/llvm
authorGuido Falsi <madpilot@FreeBSD.org>
Sat, 14 Sep 2019 15:05:23 +0000 (17:05 +0200)
committerGuido Falsi <madpilot@freebsd.org>
Sat, 14 Sep 2019 15:10:50 +0000 (10:10 -0500)
commit5ff2f7a0169d30952f1ba9c5ff48027e6c950f03
treeee8ba3ac277f7c8c62b39a638c82e119dfb3e84d
parent2fa296e7d41526f000841c083fcbd4d38a7fd776
chan_dahdi: Fix build with clang/llvm

On FreeBSD using the clang/llvm compiler build fails to build due
to the switch statement argument being a non integer type expression.
Switch to an if/else if/else construct to sidestep the issue.

ASTERISK-28536 #close

Change-Id: Idf4a82cc1e94580a2d017fe9e351c226f23e20c8
channels/chan_dahdi.c