vty_{client,server}_init(): remove unused argument

Change-Id: I65256c8602e91bcdbe5fe9e532b6ce7d347d3980
This commit is contained in:
Vadim Yanitskiy 2021-04-16 20:27:40 +02:00
parent d59783e601
commit ff3f4b3bef
6 changed files with 6 additions and 6 deletions

View File

@ -107,7 +107,7 @@ struct osmo_pcap_client {
extern struct osmo_pcap_client *pcap_client; extern struct osmo_pcap_client *pcap_client;
struct osmo_pcap_client *osmo_pcap_client_alloc(void *tall_ctx); 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_capture(struct osmo_pcap_client *client, const char *device);
int osmo_client_filter(struct osmo_pcap_client *client, const char *filter); int osmo_client_filter(struct osmo_pcap_client *client, const char *filter);

View File

@ -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, struct osmo_pcap_conn *osmo_pcap_server_find(struct osmo_pcap_server *ser,
const char *name); const char *name);
void osmo_pcap_server_delete(struct osmo_pcap_conn *conn); 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_trace(struct osmo_pcap_conn *conn);
void osmo_pcap_server_close_conn(struct osmo_pcap_conn *conn); void osmo_pcap_server_close_conn(struct osmo_pcap_conn *conn);

View File

@ -234,7 +234,7 @@ int main(int argc, char **argv)
logging_vty_add_cmds(); logging_vty_add_cmds();
osmo_stats_vty_add_cmds(); osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds(); osmo_talloc_vty_add_cmds();
vty_client_init(tall_cli_ctx); vty_client_init();
/* parse options */ /* parse options */
handle_options(argc, argv); handle_options(argc, argv);

View File

@ -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_element(CONFIG_NODE, &cfg_client_cmd);
install_node(&client_node, config_write_client); install_node(&client_node, config_write_client);

View File

@ -247,7 +247,7 @@ int main(int argc, char **argv)
logging_vty_add_cmds(); logging_vty_add_cmds();
osmo_stats_vty_add_cmds(); osmo_stats_vty_add_cmds();
osmo_talloc_vty_add_cmds(); osmo_talloc_vty_add_cmds();
vty_server_init(tall_srv_ctx); vty_server_init();
/* parse options */ /* parse options */
handle_options(argc, argv); handle_options(argc, argv);

View File

@ -513,7 +513,7 @@ DEFUN(cfg_tls_dh_generate,
return CMD_SUCCESS; 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_element(CONFIG_NODE, &cfg_server_cmd);
install_node(&server_node, config_write_server); install_node(&server_node, config_write_server);