diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2018-11-22 14:15:17 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2018-11-22 14:15:17 +0700 |
commit | 07af4e1751f9a190118213cd394da0cdcbcf3dab (patch) | |
tree | aae08eca55ebbb5b86fa64de464267fe17d3d489 /src | |
parent | 6dacc35c751452f0e94acf15e6fd42ac774c8e53 (diff) |
common/vty.c: fix deprecated osmo_str2lower() usage
Change-Id: I4f78bc13908c2d9dfbe24195ae6e35fae8575c59
Diffstat (limited to 'src')
-rw-r--r-- | src/common/vty.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/vty.c b/src/common/vty.c index 7c2900f2..bb88c578 100644 --- a/src/common/vty.c +++ b/src/common/vty.c @@ -259,7 +259,7 @@ DEFUN(cfg_bts_trx, cfg_bts_trx_cmd, static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts) { struct gsm_bts_trx *trx; - char buf_casecnvt[256]; + const char *sapi_buf; int i; vty_out(vty, "bts %u%s", bts->nr, VTY_NEWLINE); @@ -291,13 +291,13 @@ static void config_write_bts_single(struct vty *vty, struct gsm_bts *bts) for (i = 0; i < 32; i++) { if (gsmtap_sapi_mask & (1 << i)) { - osmo_str2lower(buf_casecnvt, get_value_string(gsmtap_sapi_names, i)); - vty_out(vty, " gsmtap-sapi %s%s", buf_casecnvt, VTY_NEWLINE); + sapi_buf = osmo_str_tolower(get_value_string(gsmtap_sapi_names, i)); + vty_out(vty, " gsmtap-sapi %s%s", sapi_buf, VTY_NEWLINE); } } if (gsmtap_sapi_acch) { - osmo_str2lower(buf_casecnvt, get_value_string(gsmtap_sapi_names, GSMTAP_CHANNEL_ACCH)); - vty_out(vty, " gsmtap-sapi %s%s", buf_casecnvt, VTY_NEWLINE); + sapi_buf = osmo_str_tolower(get_value_string(gsmtap_sapi_names, GSMTAP_CHANNEL_ACCH)); + vty_out(vty, " gsmtap-sapi %s%s", sapi_buf, VTY_NEWLINE); } vty_out(vty, " min-qual-rach %.0f%s", bts->min_qual_rach * 10.0f, VTY_NEWLINE); |