laforge has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/openbsc/+/15054 )

Change subject: Remove undefined param passed to 
{logging,osmo_stats}_vty_add_cmds
......................................................................

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: I7d9d477b983b0d62f01237d90acaa7ce455c3c3d
Related: OS#4138
---
M openbsc/src/libbsc/bsc_vty.c
M openbsc/src/osmo-bsc_mgcp/mgcp_main.c
M openbsc/src/osmo-bsc_nat/bsc_nat.c
3 files changed, 5 insertions(+), 5 deletions(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index c71ea4a..55a716b 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -4335,7 +4335,7 @@
        install_element_ve(&show_paging_cmd);
        install_element_ve(&show_paging_group_cmd);

-       logging_vty_add_cmds(NULL);
+       logging_vty_add_cmds();
        osmo_stats_vty_add_cmds();

        install_element(GSMNET_NODE, &cfg_net_neci_cmd);
diff --git a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c 
b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
index 419f852..220efa3 100644
--- a/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
+++ b/openbsc/src/osmo-bsc_mgcp/mgcp_main.c
@@ -222,8 +222,8 @@

        vty_info.copyright = openbsc_copyright;
        vty_init(&vty_info);
-       logging_vty_add_cmds(NULL);
-       osmo_stats_vty_add_cmds(&log_info);
+       logging_vty_add_cmds();
+       osmo_stats_vty_add_cmds();
        mgcp_vty_init();

        handle_options(argc, argv);
diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c 
b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 2e2eac0..9bb33ad 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1628,8 +1628,8 @@

        vty_info.copyright = openbsc_copyright;
        vty_init(&vty_info);
-       logging_vty_add_cmds(NULL);
-       osmo_stats_vty_add_cmds(&log_info);
+       logging_vty_add_cmds();
+       osmo_stats_vty_add_cmds();
        bsc_nat_vty_init(nat);
        ctrl_vty_init(tall_bsc_ctx);


--
To view, visit https://gerrit.osmocom.org/c/openbsc/+/15054
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Change-Id: I7d9d477b983b0d62f01237d90acaa7ce455c3c3d
Gerrit-Change-Number: 15054
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pes...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@gnumonks.org>
Gerrit-MessageType: merged

Reply via email to