[sr-dev] git:4.1:1e7c3700: sctp: fix typo scp_register_rpc -> sctp_register_rpc

Daniel-Constantin Mierla miconda at gmail.com
Fri Dec 18 21:30:34 CET 2015


Module: kamailio
Branch: 4.1
Commit: 1e7c3700acd6670762a770ddb315ac82079b1291
URL: https://github.com/kamailio/kamailio/commit/1e7c3700acd6670762a770ddb315ac82079b1291

Author: Mikko Lehto <mslehto at iki.fi>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-12-18T21:27:29+01:00

sctp: fix typo scp_register_rpc -> sctp_register_rpc
(cherry picked from commit 177b0d2807763b13d30148f44c1cc4d3d765d67c)

(cherry picked from commit 5b0fa2fedbf4ffc81d0ac322a68bd2946363cc55)

---

Modified: modules/sctp/sctp_rpc.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1e7c3700acd6670762a770ddb315ac82079b1291.diff
Patch: https://github.com/kamailio/kamailio/commit/1e7c3700acd6670762a770ddb315ac82079b1291.patch

---

diff --git a/modules/sctp/sctp_rpc.c b/modules/sctp/sctp_rpc.c
index 15dbd07..030774a 100644
--- a/modules/sctp/sctp_rpc.c
+++ b/modules/sctp/sctp_rpc.c
@@ -154,7 +154,7 @@ static void core_sctpinfo(rpc_t* rpc, void* c)
 /*
  * RPC Methods exported by this module
  */
-static rpc_export_t scp_rpc_methods[] = {
+static rpc_export_t sctp_rpc_methods[] = {
 	{"sctp.options",      core_sctp_options,      core_sctp_options_doc,
 		0},
 	{"sctp.info",         core_sctpinfo,          core_sctpinfo_doc,   0},
@@ -165,7 +165,7 @@ static rpc_export_t scp_rpc_methods[] = {
 
 int sctp_register_rpc(void)
 {
-	if (rpc_register_array(scp_rpc_methods)!=0)
+	if (rpc_register_array(sctp_rpc_methods)!=0)
 	{
 		LM_ERR("failed to register RPC commands\n");
 		return -1;




More information about the sr-dev mailing list