]> 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)
committerJoshua Colp <jcolp@digium.com>
Tue, 17 Sep 2019 10:20:37 +0000 (05:20 -0500)
commit90bd2e22e8e2b84a28da8e8fb1daeb6d3fbdb72c
treee1f19508484fa6bdd496c5100aa14f3278e241cc
parentba89536b5133ce85d2b61e5a2024e6c608129537
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