summaryrefslogtreecommitdiff
path: root/channels/chan_dahdi.c
diff options
context:
space:
mode:
Diffstat (limited to 'channels/chan_dahdi.c')
-rw-r--r--channels/chan_dahdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c
index 17baf34dd..2996cb158 100644
--- a/channels/chan_dahdi.c
+++ b/channels/chan_dahdi.c
@@ -8258,10 +8258,10 @@ static void *do_monitor(void *data)
}
#else
/* New DAHDI_VMWI ioctl supports upto 65535 messages*/
- if (res > 0xffff) {
- res2 = (last->mwisendtype | 0xffff);
+ if (res > DAHDI_VMWI_NUMBER_MASK) {
+ res2 = (last->mwisendtype | DAHDI_VMWI_NUMBER_MASK);
} else {
- res2 = (last->mwisendtype | (res & 0xffff));
+ res2 = (last->mwisendtype | (res & DAHDI_VMWI_NUMBER_MASK));
}
res2 = ioctl(last->subs[SUB_REAL].dfd, DAHDI_VMWI, &res2);
if (res2) {