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-litecell15 | |
parent | 4785fe7622e6e47dba6f891a9226a1d64af6a05a (diff) |
vty: make most struct pointers const in show/write commands
Change-Id: Iacc32f7982c150d84ea4df7affa1f9e07806928f
Diffstat (limited to 'src/osmo-bts-litecell15')
-rw-r--r-- | src/osmo-bts-litecell15/lc15bts_vty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/osmo-bts-litecell15/lc15bts_vty.c b/src/osmo-bts-litecell15/lc15bts_vty.c index 2cc812ca..5308d1ad 100644 --- a/src/osmo-bts-litecell15/lc15bts_vty.c +++ b/src/osmo-bts-litecell15/lc15bts_vty.c @@ -505,9 +505,9 @@ DEFUN(cfg_bts_rtp_drift_threshold, cfg_bts_rtp_drift_threshold_cmd, return CMD_SUCCESS; } -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) { - struct bts_lc15_priv *bts_lc15 = bts->model_priv; + const struct bts_lc15_priv *bts_lc15 = bts->model_priv; vty_out(vty, " led-control-mode %s%s", get_value_string(lc15_led_mode_strs, bts_lc15->led_ctrl_mode), VTY_NEWLINE); @@ -516,16 +516,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; |