diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-01-09 18:25:22 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-01-16 17:49:04 +0100 |
commit | dd562d84bab5974f7b3505500bc9eced52252904 (patch) | |
tree | 4b223cfa13d8c93640058b090b0f5356128a7c15 /src/osmo-bts-trx/trx_vty.c | |
parent | 773ab8b2c52d0145561e113e8af7bb839bbe4749 (diff) |
TRX: Don't use magic numbers when we have #defines
Diffstat (limited to 'src/osmo-bts-trx/trx_vty.c')
-rw-r--r-- | src/osmo-bts-trx/trx_vty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-bts-trx/trx_vty.c b/src/osmo-bts-trx/trx_vty.c index e3e9c364..43c00f88 100644 --- a/src/osmo-bts-trx/trx_vty.c +++ b/src/osmo-bts-trx/trx_vty.c @@ -100,7 +100,7 @@ DEFUN(show_transceiver, show_transceiver_cmd, "show transceiver", VTY_NEWLINE); else vty_out(vty, " maxdly : undefined%s", VTY_NEWLINE); - for (tn = 0; tn < 8; tn++) { + for (tn = 0; tn < TRX_NR_TS; tn++) { if (!((1 << tn) & l1h->config.slotmask)) vty_out(vty, " slot #%d: unsupported%s", tn, VTY_NEWLINE); @@ -299,7 +299,7 @@ DEFUN(cfg_trx_slotmask, cfg_trx_slotmask_cmd, uint8_t tn; l1h->config.slotmask = 0; - for (tn = 0; tn < 8; tn++) + for (tn = 0; tn < TRX_NR_TS; tn++) if (argv[tn][0] == '1') l1h->config.slotmask |= (1 << tn); |