]> 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:05:23 +0000 (17:05 +0200)
commitae70c2a428f405eb39adf0d59e40c5f1cc06723d
tree968e2d62b5b3abe68260e5637420ede7833fa8b8
parenta1b371603f8b46199eb6624b5eec6311ef7a9eff
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