فهرست منبع

rr: fixed typos in comments

Daniel-Constantin Mierla 2 سال پیش
والد
کامیت
9b237a3110
3فایلهای تغییر یافته به همراه9 افزوده شده و 9 حذف شده
  1. 5 5
      src/modules/rr/loose.c
  2. 3 3
      src/modules/rr/loose.h
  3. 1 1
      src/modules/rr/rr_mod.c

+ 5 - 5
src/modules/rr/loose.c

@@ -595,7 +595,7 @@ static inline int after_strict(struct sip_msg* _m)
 	}
 
 	if ( enable_double_rr && is_2rr(&puri.params) && is_myself(&puri)) {
-		/* double route may occure due different IP and port, so force as
+		/* double route may occur due different IP and port, so force as
 		 * send interface the one advertise in second Route */
 		si = grep_sock_info( &puri.host, puri.port_no, puri.proto);
 		if (si) {
@@ -891,7 +891,7 @@ static inline int after_loose(struct sip_msg* _m, int preloaded)
 		} else rt = rt->next;
 
 		if (enable_double_rr && is_2rr(&puri.params)) {
-			/* double route may occure due different IP and port, so force as
+			/* double route may occur due different IP and port, so force as
 			 * send interface the one advertise in second Route */
 			if (parse_uri(rt->nameaddr.uri.s,rt->nameaddr.uri.len,&puri)<0) {
 				LM_ERR("failed to parse the double route URI (%.*s)\n",
@@ -1118,7 +1118,7 @@ int redo_route_params(sip_msg_t *msg)
  *
  * The function checks for the request "msg" if the URI parameters
  * of the local Route header (corresponding to the local server)
- * matches the given regular expression "re". It must be call
+ * matches the given regular expression "re". It must be called
  * after the loose_route was done.
  *
  * \param msg SIP message request that will has the Route header parameters checked
@@ -1170,7 +1170,7 @@ int check_route_param(sip_msg_t * msg, regex_t* re)
  *
  * The function search in to the "msg"'s Route header parameters
  * the parameter called "name" and returns its value into "val".
- * It must be call only after the loose_route is done.
+ * It must be called only after the loose_route is done.
  *
  * \param msg - request that will have the Route header parameter searched
  * \param name - contains the Route header parameter to be serached
@@ -1265,7 +1265,7 @@ found:
  * The function checks the flow direction of the request "msg". As
  * for checking it's used the "ftag" Route header parameter, the
  * append_fromtag module parameter must be enables.
- * Also this must be call only after the loose_route is done.
+ * Also this must be called only after the loose_route is done.
 
  * \param msg SIP message request that will have the direction checked
  * \param dir direction to be checked against. It may be RR_FLOW_UPSTREAM or RR_FLOW_DOWNSTREAM

+ 3 - 3
src/modules/rr/loose.h

@@ -66,7 +66,7 @@ int loose_route(struct sip_msg* _m);
  *
  * The function checks for the request "msg" if the URI parameters
  * of the local Route header (corresponding to the local server)
- * matches the given regular expression "re". It must be call
+ * matches the given regular expression "re". It must be called
  * after the loose_route was done.
  *
  * \param msg SIP message request that will has the Route header parameters checked
@@ -82,7 +82,7 @@ int check_route_param(struct sip_msg *msg, regex_t* re);
  * The function checks the flow direction of the request "msg". As
  * for checking it's used the "ftag" Route header parameter, the
  * append_fromtag module parameter must be enables.
- * Also this must be call only after the loose_route is done.
+ * Also this must be called only after the loose_route is done.
 
  * \param msg SIP message request that will have the direction checked
  * \param dir direction to be checked against. It may be RR_FLOW_UPSTREAM or RR_FLOW_DOWNSTREAM
@@ -96,7 +96,7 @@ int is_direction(struct sip_msg *msg, int dir);
  *
  * The function search in to the "msg"'s Route header parameters
  * the parameter called "name" and returns its value into "val".
- * It must be call only after the loose_route is done.
+ * It must be called only after the loose_route is done.
  *
  * \param msg - request that will have the Route header parameter searched
  * \param name - contains the Route header parameter to be serached

+ 1 - 1
src/modules/rr/rr_mod.c

@@ -622,7 +622,7 @@ static void free_rr_lump(struct lump **list)
 			/* if (lump->flags & (LUMPFLAG_DUPED|LUMPFLAG_SHMEM)){
 				LOG(L_CRIT, "BUG: free_rr_lmp: lump %p, flags %x\n",
 						lump, lump->flags);
-			*/	/* ty to continue */
+			*/	/* try to continue */
 			/*}*/
 			a=lump->before;
 			while(a) {