From 4dc025b4a8534d3091219cfd82ed54259d1b3e6b Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 25 Aug 2010 12:29:24 +0800 Subject: bsc_init: Compare it with the right enum type In both cases the int value was zero, so it actually worked --- openbsc/src/bsc_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c index 7d9a520aa..2d92b426e 100644 --- a/openbsc/src/bsc_init.c +++ b/openbsc/src/bsc_init.c @@ -1057,7 +1057,7 @@ void input_event(int event, enum e1inp_sign_type type, struct gsm_bts_trx *trx) struct gsm_bts_trx_ts *ts = &trx->ts[ts_no]; for (lchan_no = 0; lchan_no < ARRAY_SIZE(ts->lchan); ++lchan_no) { - if (ts->lchan[lchan_no].state != GSM_LCHAN_NONE) + if (ts->lchan[lchan_no].state != LCHAN_S_NONE) lchan_free(&ts->lchan[lchan_no]); lchan_reset(&ts->lchan[lchan_no]); } -- cgit v1.2.3