diff --git a/src/modules/erlang/cnode.c b/src/modules/erlang/cnode.c
index 141fae71e99..0df9544d77e 100644
--- a/src/modules/erlang/cnode.c
+++ b/src/modules/erlang/cnode.c
@@ -226,7 +226,7 @@ int init_cnode_sockets(int cnode_id)
io_handler_ins(phandler);
- /* start epmd handler - publish Kamailo C node */
+ /* start epmd handler - publish Kamailio C node */
if (epmd_init((epmd_handler_t*)phandler, &alivename) < 0 ) {
return -1;
}
@@ -349,7 +349,7 @@ void cnode_main_loop(int cnode_id)
* return: -1 on error
* 0 on EAGAIN or when by some other way it is known that no more
* io events are queued on the fd (the receive buffer is empty).
- * Usefull to detect when there are no more io events queued for
+ * Useful to detect when there are no more io events queued for
* sigio_rt, epoll_et, kqueue.
* >0 on successfully read from the fd (when there might be more io
* queued -- the receive buffer might still be non-empty)
diff --git a/src/modules/erlang/doc/erlang_admin.xml b/src/modules/erlang/doc/erlang_admin.xml
index 6b6bec8d381..72479cfa822 100644
--- a/src/modules/erlang/doc/erlang_admin.xml
+++ b/src/modules/erlang/doc/erlang_admin.xml
@@ -100,7 +100,7 @@ modparam("erlang", "no_cnodes", 2)
alivename is the registered name of the &kamailio; process.
- Note, if the no_cnodes greater then 1,
+ Note, if the no_cnodes is greater than 1,
then alivename of &kamailio; process will be suffixed with number.
diff --git a/src/modules/erlang/doc/erlang_use.xml b/src/modules/erlang/doc/erlang_use.xml
index f09d187e14c..3e8c7d6b727 100644
--- a/src/modules/erlang/doc/erlang_use.xml
+++ b/src/modules/erlang/doc/erlang_use.xml
@@ -14,7 +14,7 @@
RPC calls from Erlang
- This module implements the erlang transport and encoding interface for &kamailio; RPCs. It's allow to call any exported RPC in &kamailio;
+ This module implements the erlang transport and encoding interface for &kamailio; RPCs. It's allowed to call any exported RPC in &kamailio;
from erlang node.
diff --git a/src/modules/erlang/erl_api.c b/src/modules/erlang/erl_api.c
index 2b756f53f90..c7f074cd418 100644
--- a/src/modules/erlang/erl_api.c
+++ b/src/modules/erlang/erl_api.c
@@ -328,7 +328,7 @@ int _impl_reply(const ei_x_buff *msg)
/* copy into reply */
if (enode->response.buffsz < msg->buffsz) {
- /* realocate */
+ /* reallocate */
enode->response.buff=realloc(enode->response.buff,msg->buffsz);
if (!enode->response.buff) {
LM_ERR("realloc failed: not enough memory\n");
diff --git a/src/modules/erlang/handle_emsg.c b/src/modules/erlang/handle_emsg.c
index 96de5e01d86..0f709e548ff 100644
--- a/src/modules/erlang/handle_emsg.c
+++ b/src/modules/erlang/handle_emsg.c
@@ -621,7 +621,7 @@ int handle_rex_call(cnode_handler_t *phandler,erlang_ref_ex_t *ref, erlang_pid *
response->index = ctx.response_index;
ei_x_encode_atom(response, "error");
ei_x_encode_tuple_header(response,2);
- ei_x_encode_string(response, "Inernal Error: Failed to encode reply");
+ ei_x_encode_string(response, "Internal Error: Failed to encode reply");
}
else
{
diff --git a/src/modules/erlang/handle_rpc.c b/src/modules/erlang/handle_rpc.c
index d45351bcc25..5cf5f109f84 100644
--- a/src/modules/erlang/handle_rpc.c
+++ b/src/modules/erlang/handle_rpc.c
@@ -572,7 +572,7 @@ int erl_rpc_struct_scan(erl_rpc_ctx_t* ctx, char* fmt, ...)
#define RPC_BUF_SIZE 1024
/*
- * adds formated string into RPC response buffer as Erlang string/list
+ * adds formatted string into RPC response buffer as Erlang string/list
*/
int erl_rpc_printf(erl_rpc_ctx_t* ctx, char* fmt, ...)
{
diff --git a/src/modules/erlang/handle_rpc.h b/src/modules/erlang/handle_rpc.h
index 94ac7e747a4..24edabf21d6 100644
--- a/src/modules/erlang/handle_rpc.h
+++ b/src/modules/erlang/handle_rpc.h
@@ -68,7 +68,7 @@ int erl_rpc_send(erl_rpc_ctx_t* ctx, int depth); /* Send the reply to the Er
void erl_rpc_fault(erl_rpc_ctx_t* ctx, int code, char* fmt, ...); /* Signal a failure to the client */
int erl_rpc_add(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Add a new piece of data to the result */
int erl_rpc_scan(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Retrieve request parameters */
-int erl_rpc_printf(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Add printf-like formated data to the result set */
+int erl_rpc_printf(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Add printf-like formatted data to the result set */
int erl_rpc_struct_add(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Add a new structure into structure */
int erl_rpc_array_add(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Add a new structure into array */
int erl_rpc_struct_scan(erl_rpc_ctx_t* ctx, char* fmt, ...); /* Scan attributes of a structure */
diff --git a/src/modules/erlang/worker.c b/src/modules/erlang/worker.c
index 71af3b02985..fea6c9d8d9b 100644
--- a/src/modules/erlang/worker.c
+++ b/src/modules/erlang/worker.c
@@ -260,7 +260,7 @@ int worker_rpc_impl(ei_cnode *ec, int s,int wpid)
pkg_free(function.s);
free(args.buff);
ei_x_free(&reply);
- abort(); /* cant't recover */
+ abort(); /* can't recover */
return -1;
}