]> 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)
committerSean Bright <sean.bright@gmail.com>
Tue, 17 Sep 2019 10:38:59 +0000 (05:38 -0500)
commit4072e219f74305e41933350c2b2a2f3aff3bb89a
tree0d01b628b14de32a0ef890648024f3d2b6385ac3
parent32ce6e9a06b5483bf3e6f485ed8c62eae77f4bbf
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