aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 16:05:14 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 16:05:14 +0200
commitf54eb96338bc36a5362f0b2a1e3b46372bda2055 (patch)
treeab22a518560764a1e56fc71e17a4611331e7f700
parenta2b1c5e6f62a698e09c6386454804ad80e2ff919 (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: Icf4d18969488c9eacca7a597d4071828e649e772 Related: OS#4138
-rw-r--r--src/osmo-mgw/mgw_main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/osmo-mgw/mgw_main.c b/src/osmo-mgw/mgw_main.c
index 583d0fb85..adc1751bc 100644
--- a/src/osmo-mgw/mgw_main.c
+++ b/src/osmo-mgw/mgw_main.c
@@ -270,9 +270,9 @@ int main(int argc, char **argv)
vty_info.copyright = osmomgw_copyright;
vty_init(&vty_info);
- logging_vty_add_cmds(NULL);
+ logging_vty_add_cmds();
osmo_talloc_vty_add_cmds();
- osmo_stats_vty_add_cmds(&log_info);
+ osmo_stats_vty_add_cmds();
mgcp_vty_init();
handle_options(argc, argv);