]> 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:21:04 +0000 (05:21 -0500)
commit8931669b37d4edc9a27de42eb3529b13326bec78
tree5164db8a0f059b5ee30199046a59532c461aea2c
parent951d914aab0e0cae65365fb3cf55b30b4262b53f
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