From 2728abf9d973ea75b0446432030575b27f40e21a Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 5 Aug 2019 14:47:03 +0200 Subject: 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 --- stp/stp_main.c | 2 +- tests/vty/ss7_asp_vty_test.c | 2 +- 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); -- cgit v1.2.3