summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 16:16:45 +0200
committerlaforge <laforge@gnumonks.org>2019-08-05 17:50:01 +0000
commitd0a8fa90627285a1cc5b31eb5f623c4f8e88c1c4 (patch)
tree7bcbd1670aac391e00cb47aa79a64ba22c5126a8
parentab5b4311b0851dd4d1f0b4fba3f04ba1b95ed377 (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: Ie519d4a4064a95803c33fd6969b53e1ef27045b7 Related: OS#4138
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index ab58a52..13fdd5d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -133,8 +133,8 @@ int main(int argc, char **argv)
osmo_stats_init(tall_mncc_ctx);
mncc_sip_vty_init();
- logging_vty_add_cmds(&mncc_sip_info);
- osmo_stats_vty_add_cmds(&mncc_sip_info);
+ logging_vty_add_cmds();
+ osmo_stats_vty_add_cmds();
/* parsing and setup */