diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-25 09:53:59 +0700 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2020-09-28 11:39:04 +0700 |
commit | 64bd96b3f8c178de53b1efbbcedb9d94cb0c176f (patch) | |
tree | 593ba302e5fa3dc71a03f6f58d86a0600946e895 /src/osmo-bts-oc2g | |
parent | 4785fe7622e6e47dba6f891a9226a1d64af6a05a (diff) |
vty: make most struct pointers const in show/write commands
Change-Id: Iacc32f7982c150d84ea4df7affa1f9e07806928f
Diffstat (limited to 'src/osmo-bts-oc2g')
-rw-r--r-- | src/osmo-bts-oc2g/oc2gbts_vty.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osmo-bts-oc2g/oc2gbts_vty.c b/src/osmo-bts-oc2g/oc2gbts_vty.c index 8dc4efaa..c12d0bf7 100644 --- a/src/osmo-bts-oc2g/oc2gbts_vty.c +++ b/src/osmo-bts-oc2g/oc2gbts_vty.c @@ -541,7 +541,7 @@ DEFUN(cfg_bts_rtp_drift_threshold, cfg_bts_rtp_drift_threshold_cmd, } */ -void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts) +void bts_model_config_write_bts(struct vty *vty, const struct gsm_bts *bts) { /* TODO(oramadan) MERGE struct gsm_bts_role_bts *btsb = bts_role_bts(bts); @@ -555,16 +555,16 @@ void bts_model_config_write_bts(struct vty *vty, struct gsm_bts *bts) } -void bts_model_config_write_trx(struct vty *vty, struct gsm_bts_trx *trx) +void bts_model_config_write_trx(struct vty *vty, const struct gsm_bts_trx *trx) { vty_out(vty, " nominal-tx-power %d%s", trx->nominal_power,VTY_NEWLINE); } -void bts_model_config_write_phy(struct vty *vty, struct phy_link *plink) +void bts_model_config_write_phy(struct vty *vty, const struct phy_link *plink) { } -void bts_model_config_write_phy_inst(struct vty *vty, struct phy_instance *pinst) +void bts_model_config_write_phy_inst(struct vty *vty, const struct phy_instance *pinst) { int i; |