diff options
author | Max <msuraev@sysmocom.de> | 2016-10-17 11:07:51 +0200 |
---|---|---|
committer | Max <msuraev@sysmocom.de> | 2016-10-18 08:08:25 +0000 |
commit | ebb483b69a5319e522ba5f713e9cb6f68a814a6a (patch) | |
tree | bb3d719da7872869671c14029d9e410a40b1dc4f /src/common/oml.c | |
parent | b0c1d21581f009e9509e0fd995c86d1785785c7a (diff) |
Replace magic number with define
SDCCH occupy lchan 0..3 in combined configuration so for CCCH we've
always used lchan[4] - replace it with CCCH_LCHAN define and add
comment.
Change-Id: Ic5d742c292d638f119c6b4672120c1950adeb7f0
Diffstat (limited to 'src/common/oml.c')
-rw-r--r-- | src/common/oml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/oml.c b/src/common/oml.c index 690a81d9..c4f3d7e4 100644 --- a/src/common/oml.c +++ b/src/common/oml.c @@ -727,7 +727,7 @@ int conf_lchans_as_pchan(struct gsm_bts_trx_ts *ts, } /* fallthrough */ case GSM_PCHAN_CCCH: - lchan = &ts->lchan[4]; + lchan = &ts->lchan[CCCH_LCHAN]; lchan->type = GSM_LCHAN_CCCH; break; case GSM_PCHAN_TCH_F: |