From 9bd5d2da7f92f0a45962b5adfce56d02defdecbd Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 22 Jan 2016 18:40:18 +0100 Subject: [PATCH] stats: rpc command renamed to statsc.report --- modules/statsc/statsc_mod.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/modules/statsc/statsc_mod.c b/modules/statsc/statsc_mod.c index f9ee2faac7c..d746e1aa50e 100644 --- a/modules/statsc/statsc_mod.c +++ b/modules/statsc/statsc_mod.c @@ -304,7 +304,7 @@ int statsc_track_param(modparam_t type, void* val) /** * */ -static const char* statsc_rpc_exec_doc[2] = { +static const char* statsc_rpc_report_doc[2] = { "Statistics collector control command", 0 }; @@ -312,7 +312,7 @@ static const char* statsc_rpc_exec_doc[2] = { /** * */ -static void statsc_rpc_exec(rpc_t* rpc, void* ctx) +static void statsc_rpc_report(rpc_t* rpc, void* ctx) { statsc_nmap_t *sm = NULL; str cname; @@ -458,7 +458,7 @@ static void statsc_rpc_exec(rpc_t* rpc, void* ctx) * */ rpc_export_t statsc_rpc[] = { - {"statsc.exec", statsc_rpc_exec, statsc_rpc_exec_doc, 0}, + {"statsc.report", statsc_rpc_report, statsc_rpc_report_doc, 0}, {0, 0, 0, 0} }; @@ -467,8 +467,7 @@ rpc_export_t statsc_rpc[] = { */ int statsc_init_rpc(void) { - if (rpc_register_array(statsc_rpc)!=0) - { + if (rpc_register_array(statsc_rpc)!=0) { LM_ERR("failed to register RPC commands\n"); return -1; }