aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2010-08-25 12:29:24 +0800
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-08-25 12:33:57 +0800
commit4dc025b4a8534d3091219cfd82ed54259d1b3e6b (patch)
treecb577eee040bb0387c50ee8c449f7ff02093d6ac /openbsc
parent640d72ab3b160a64f0d2940ca588e08499420903 (diff)
bsc_init: Compare it with the right enum type
In both cases the int value was zero, so it actually worked
Diffstat (limited to 'openbsc')
-rw-r--r--openbsc/src/bsc_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/bsc_init.c b/openbsc/src/bsc_init.c
index 7d9a520a..2d92b426 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]);
}