Merge "chan_dahdi: Fix build with clang/llvm"
This commit is contained in:
commit
1030de1d08
|
@ -15160,10 +15160,12 @@ static void mfcr2_show_links_of(struct ast_cli_args *a, struct r2links *list_hea
|
||||||
int channo;
|
int channo;
|
||||||
int prev_channo;
|
int prev_channo;
|
||||||
x++;
|
x++;
|
||||||
switch (mfcr2->r2master) {
|
if (mfcr2->r2master == 0L) {
|
||||||
case 0L: thread_status = "zero"; break;
|
thread_status = "zero";
|
||||||
case AST_PTHREADT_NULL: thread_status = "none"; break;
|
} else if (mfcr2->r2master == AST_PTHREADT_NULL) {
|
||||||
default: thread_status = "created"; break;
|
thread_status = "none";
|
||||||
|
} else {
|
||||||
|
thread_status = "created";
|
||||||
}
|
}
|
||||||
snprintf(index, sizeof(index), "%d", mfcr2->index);
|
snprintf(index, sizeof(index), "%d", mfcr2->index);
|
||||||
snprintf(live_chans_str, sizeof(live_chans_str), "%d", mfcr2->live_chans);
|
snprintf(live_chans_str, sizeof(live_chans_str), "%d", mfcr2->live_chans);
|
||||||
|
|
Loading…
Reference in New Issue