瀏覽代碼

erlang: typos fixes

dilyanpalauzov 2 年之前
父節點
當前提交
9eed6ff959

+ 2 - 2
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 @@ error:
  * 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)

+ 1 - 1
src/modules/erlang/doc/erlang_admin.xml

@@ -100,7 +100,7 @@ modparam("erlang", "no_cnodes", 2)
 				<emphasis>alivename</emphasis> is the registered name of the &kamailio; process.
 			</para>
 			<para>
-				<emphasis>Note,</emphasis> if the <varname>no_cnodes</varname> greater then 1,
+				<emphasis>Note,</emphasis> if the <varname>no_cnodes</varname> is greater than 1,
 				then <emphasis>alivename</emphasis> of &kamailio; process will be suffixed with number.
 			</para>
 			<example>

+ 1 - 1
src/modules/erlang/doc/erlang_use.xml

@@ -14,7 +14,7 @@
 	<section>
 		<title>RPC calls from Erlang</title>
 		<para>
-			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.
 		</para>
 		<para>

+ 1 - 1
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");

+ 1 - 1
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
 	{

+ 1 - 1
src/modules/erlang/handle_rpc.c

@@ -572,7 +572,7 @@ error:
 #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, ...)
 {

+ 1 - 1
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 */

+ 1 - 1
src/modules/erlang/worker.c

@@ -260,7 +260,7 @@ err:
 	pkg_free(function.s);
 	free(args.buff);
 	ei_x_free(&reply);
-	abort(); /* cant't recover */
+	abort(); /* can't recover */
 	return -1;
 }