From ff3f4b3bef73cffc2fb009696a6457c08045c85a Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 16 Apr 2021 20:27:40 +0200 Subject: [PATCH] vty_{client,server}_init(): remove unused argument Change-Id: I65256c8602e91bcdbe5fe9e532b6ce7d347d3980 --- include/osmo-pcap/osmo_pcap_client.h | 2 +- include/osmo-pcap/osmo_pcap_server.h | 2 +- src/osmo_client_main.c | 2 +- src/osmo_client_vty.c | 2 +- src/osmo_server_main.c | 2 +- src/osmo_server_vty.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/include/osmo-pcap/osmo_pcap_client.h b/include/osmo-pcap/osmo_pcap_client.h index 70be8db..887d422 100644 --- a/include/osmo-pcap/osmo_pcap_client.h +++ b/include/osmo-pcap/osmo_pcap_client.h @@ -107,7 +107,7 @@ struct osmo_pcap_client { extern struct osmo_pcap_client *pcap_client; struct osmo_pcap_client *osmo_pcap_client_alloc(void *tall_ctx); -int vty_client_init(struct osmo_pcap_client *); +int vty_client_init(void); int osmo_client_capture(struct osmo_pcap_client *client, const char *device); int osmo_client_filter(struct osmo_pcap_client *client, const char *filter); diff --git a/include/osmo-pcap/osmo_pcap_server.h b/include/osmo-pcap/osmo_pcap_server.h index a983ec5..7de94a6 100644 --- a/include/osmo-pcap/osmo_pcap_server.h +++ b/include/osmo-pcap/osmo_pcap_server.h @@ -144,7 +144,7 @@ int osmo_pcap_server_listen(struct osmo_pcap_server *server); struct osmo_pcap_conn *osmo_pcap_server_find(struct osmo_pcap_server *ser, const char *name); void osmo_pcap_server_delete(struct osmo_pcap_conn *conn); -void vty_server_init(struct osmo_pcap_server *server); +void vty_server_init(void); void osmo_pcap_server_close_trace(struct osmo_pcap_conn *conn); void osmo_pcap_server_close_conn(struct osmo_pcap_conn *conn); diff --git a/src/osmo_client_main.c b/src/osmo_client_main.c index cbaefef..7ca3548 100644 --- a/src/osmo_client_main.c +++ b/src/osmo_client_main.c @@ -234,7 +234,7 @@ int main(int argc, char **argv) logging_vty_add_cmds(); osmo_stats_vty_add_cmds(); osmo_talloc_vty_add_cmds(); - vty_client_init(tall_cli_ctx); + vty_client_init(); /* parse options */ handle_options(argc, argv); diff --git a/src/osmo_client_vty.c b/src/osmo_client_vty.c index fed9bf6..7458f85 100644 --- a/src/osmo_client_vty.c +++ b/src/osmo_client_vty.c @@ -519,7 +519,7 @@ DEFUN(cfg_client_protocol, } -int vty_client_init(struct osmo_pcap_client *pcap) +int vty_client_init(void) { install_element(CONFIG_NODE, &cfg_client_cmd); install_node(&client_node, config_write_client); diff --git a/src/osmo_server_main.c b/src/osmo_server_main.c index f8850db..9c234d5 100644 --- a/src/osmo_server_main.c +++ b/src/osmo_server_main.c @@ -247,7 +247,7 @@ int main(int argc, char **argv) logging_vty_add_cmds(); osmo_stats_vty_add_cmds(); osmo_talloc_vty_add_cmds(); - vty_server_init(tall_srv_ctx); + vty_server_init(); /* parse options */ handle_options(argc, argv); diff --git a/src/osmo_server_vty.c b/src/osmo_server_vty.c index e9b54b1..87bcfa2 100644 --- a/src/osmo_server_vty.c +++ b/src/osmo_server_vty.c @@ -513,7 +513,7 @@ DEFUN(cfg_tls_dh_generate, return CMD_SUCCESS; } -void vty_server_init(struct osmo_pcap_server *server) +void vty_server_init(void) { install_element(CONFIG_NODE, &cfg_server_cmd); install_node(&server_node, config_write_server);