aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/vty.c
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 16:12:04 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 16:13:09 +0200
commitb4d8f5cf136fdf8ad444cc9547c7f60803e20711 (patch)
tree117eac612eadf5af8c41f8e735913cfc5e0d02eb /src/common/vty.c
parentcb0cb897add108689c6dc0100ac415b04c006445 (diff)
Remove undefined param passed to {logging,osmo_stats}_vty_add_cmds
Since March 15th 2017, libosmocore API logging_vty_add_cmds() had its parameter removed (c65c5b4ea075ef6cef11fff9442ae0b15c1d6af7). However, definition in C file doesn't contain "(void)", which means number of parameters is undefined and thus compiler doesn't complain. Let's remove parameters from all callers before enforcing "(void)" on it. API osmo_stats_vty_add_cmds never had a param list but has seem problem (no "void"), so some users decided to pass a parameter to it. Change-Id: Ia4d1a7914308d1481fe31fe0986265ead339e61e Related: OS#4138
Diffstat (limited to 'src/common/vty.c')
-rw-r--r--src/common/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/vty.c b/src/common/vty.c
index e4f5a16c..801f34c0 100644
--- a/src/common/vty.c
+++ b/src/common/vty.c
@@ -1600,7 +1600,7 @@ DEFUN(no_bts_t_t_l_loopback,
return CMD_SUCCESS;
}
-int bts_vty_init(struct gsm_bts *bts, const struct log_info *cat)
+int bts_vty_init(struct gsm_bts *bts)
{
cfg_trx_gsmtap_sapi_cmd.string = vty_cmd_string_from_valstr(bts, gsmtap_sapi_names,
"gsmtap-sapi (",
@@ -1622,7 +1622,7 @@ int bts_vty_init(struct gsm_bts *bts, const struct log_info *cat)
install_element_ve(&show_lchan_cmd);
install_element_ve(&show_lchan_summary_cmd);
- logging_vty_add_cmds(cat);
+ logging_vty_add_cmds();
osmo_talloc_vty_add_cmds();
osmo_stats_vty_add_cmds();