aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 14:47:03 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2019-08-05 14:47:06 +0200
commit2728abf9d973ea75b0446432030575b27f40e21a (patch)
tree1f35d8621da9f4cf92f846cf22b466a9cbc03bbd
parent21647846705f402ae182a4a7a9ea74fc88b62149 (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. Related: OS#4138 Change-Id: Iedd11f816002b686f0ddb54c0cf7ba4e229e21e3
-rw-r--r--stp/stp_main.c2
-rw-r--r--tests/vty/ss7_asp_vty_test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/stp/stp_main.c b/stp/stp_main.c
index ff33959..a3e3a85 100644
--- a/stp/stp_main.c
+++ b/stp/stp_main.c
@@ -177,7 +177,7 @@ int main(int argc, char **argv)
osmo_ss7_init();
osmo_fsm_log_addr(false);
- logging_vty_add_cmds(&log_info);
+ logging_vty_add_cmds();
osmo_stats_vty_add_cmds();
osmo_ss7_vty_init_sg(tall_stp_ctx);
osmo_sccp_vty_init();
diff --git a/tests/vty/ss7_asp_vty_test.c b/tests/vty/ss7_asp_vty_test.c
index 6918df4..76ffcf2 100644
--- a/tests/vty/ss7_asp_vty_test.c
+++ b/tests/vty/ss7_asp_vty_test.c
@@ -162,7 +162,7 @@ int main(int argc, char **argv)
vty_init(&vty_info);
osmo_init_logging2(root_ctx, &log_info);
- logging_vty_add_cmds(&log_info);
+ logging_vty_add_cmds();
osmo_ss7_init();
osmo_ss7_vty_init_asp(root_ctx);