dexter has uploaded this change for review. (
https://gerrit.osmocom.org/c/osmo-bsc/+/31257 )
Change subject: bts_trx_vty: use define constant E1_SUBSLOT_FULL instead magic number
......................................................................
bts_trx_vty: use define constant E1_SUBSLOT_FULL instead magic number
Change-Id: I0be228d4473215c6bd36c668e0e10e64965732e7
---
M src/osmo-bsc/bts_trx_vty.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/57/31257/1
diff --git a/src/osmo-bsc/bts_trx_vty.c b/src/osmo-bsc/bts_trx_vty.c
index 118feca..84de9c5 100644
--- a/src/osmo-bsc/bts_trx_vty.c
+++ b/src/osmo-bsc/bts_trx_vty.c
@@ -69,7 +69,7 @@
e1_link->e1_nr = atoi(line);
e1_link->e1_ts = atoi(ts);
if (!strcmp(ss, "full"))
- e1_link->e1_ts_ss = 255;
+ e1_link->e1_ts_ss = E1_SUBSLOT_FULL;
else
e1_link->e1_ts_ss = atoi(ss);
}
@@ -773,7 +773,7 @@
if (!e1_link->e1_ts)
return;
- if (e1_link->e1_ts_ss == 255)
+ if (e1_link->e1_ts_ss == E1_SUBSLOT_FULL)
vty_out(vty, "%se1 line %u timeslot %u sub-slot full%s",
prefix, e1_link->e1_nr, e1_link->e1_ts, VTY_NEWLINE);
else
--
To view, visit
https://gerrit.osmocom.org/c/osmo-bsc/+/31257
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Change-Id: I0be228d4473215c6bd36c668e0e10e64965732e7
Gerrit-Change-Number: 31257
Gerrit-PatchSet: 1
Gerrit-Owner: dexter <pmaier(a)sysmocom.de>
Gerrit-MessageType: newchange