Browse Source

seas: removed trailing spaces

Daniel-Constantin Mierla 1 year ago
parent
commit
d9d5ef42a6
37 changed files with 191 additions and 191 deletions
  1. 4 4
      src/modules/seas/cluster.c
  2. 7 7
      src/modules/seas/encode_allow.c
  3. 8 8
      src/modules/seas/encode_contact.c
  4. 2 2
      src/modules/seas/encode_contact.h
  5. 7 7
      src/modules/seas/encode_content_disposition.c
  6. 7 7
      src/modules/seas/encode_content_length.c
  7. 7 7
      src/modules/seas/encode_content_type.c
  8. 8 8
      src/modules/seas/encode_cseq.c
  9. 9 9
      src/modules/seas/encode_digest.c
  10. 7 7
      src/modules/seas/encode_expires.c
  11. 2 2
      src/modules/seas/encode_expires.h
  12. 7 7
      src/modules/seas/encode_header.c
  13. 2 2
      src/modules/seas/encode_header.h
  14. 8 8
      src/modules/seas/encode_msg.c
  15. 2 2
      src/modules/seas/encode_msg.h
  16. 9 9
      src/modules/seas/encode_parameters.c
  17. 2 2
      src/modules/seas/encode_parameters.h
  18. 7 7
      src/modules/seas/encode_route.c
  19. 2 2
      src/modules/seas/encode_route.h
  20. 7 7
      src/modules/seas/encode_to_body.c
  21. 2 2
      src/modules/seas/encode_to_body.h
  22. 13 13
      src/modules/seas/encode_uri.c
  23. 2 2
      src/modules/seas/encode_uri.h
  24. 7 7
      src/modules/seas/encode_via.c
  25. 2 2
      src/modules/seas/encode_via.h
  26. 11 11
      src/modules/seas/event_dispatcher.c
  27. 2 2
      src/modules/seas/event_dispatcher.h
  28. 8 8
      src/modules/seas/ha.c
  29. 2 2
      src/modules/seas/ha.h
  30. 6 6
      src/modules/seas/seas_action.c
  31. 2 2
      src/modules/seas/seas_action.h
  32. 2 2
      src/modules/seas/seas_error.h
  33. 4 4
      src/modules/seas/statistics.c
  34. 2 2
      src/modules/seas/statistics.h
  35. 8 8
      src/modules/seas/utils.c
  36. 2 2
      src/modules/seas/utils.h
  37. 2 2
      src/modules/seas/xaddress.h

+ 4 - 4
src/modules/seas/cluster.c

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -36,13 +36,13 @@ char *cluster_cfg;
 
 
 
 
 /**
 /**
- * Parses the PING configuration string. Its format is 
+ * Parses the PING configuration string. Its format is
  * "ping_period:pings_lost:ping_timeout"
  * "ping_period:pings_lost:ping_timeout"
  * ping_period : time between pings
  * ping_period : time between pings
  * pings_lost: number of lost pings before failure
  * pings_lost: number of lost pings before failure
  * ping_timeout: time to consider a ping failed
  * ping_timeout: time to consider a ping failed
  *
  *
- * returns 
+ * returns
  * 0 if no clusters present
  * 0 if no clusters present
  * -1 if config is malformed (unable to parse);
  * -1 if config is malformed (unable to parse);
  *  1 if config is successfully set
  *  1 if config is successfully set

+ 7 - 7
src/modules/seas/encode_allow.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_allow.c
  *        Filename:  encode_allow.c
- * 
+ *
  *     Description:  [en|de]code allow header
  *     Description:  [en|de]code allow header
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  21/11/05 20:40:25 CET
  *         Created:  21/11/05 20:40:25 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 8 - 8
src/modules/seas/encode_contact.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_contact.c
  *        Filename:  encode_contact.c
- * 
+ *
  *     Description:  functions to encode/decode/print the contact header
  *     Description:  functions to encode/decode/print the contact header
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  20/11/05 04:24:55 CET
  *         Created:  20/11/05 04:24:55 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 
@@ -58,7 +58,7 @@
  * encoding is:
  * encoding is:
  * 1: flags
  * 1: flags
  * 	0x01 this is a star contact (*)
  * 	0x01 this is a star contact (*)
- *[ 
+ *[
  * 1: number of contacts present
  * 1: number of contacts present
  * N: fore each contact present, the length of the contact structure
  * N: fore each contact present, the length of the contact structure
  * N*M: the contact structures concatenated
  * N*M: the contact structures concatenated

+ 2 - 2
src/modules/seas/encode_contact.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_content_disposition.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_content_disposition.c
  *        Filename:  encode_content_disposition.c
- * 
+ *
  *     Description:  [en|de]encodes content disposition
  *     Description:  [en|de]encodes content disposition
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  21/11/05 20:36:19 CET
  *         Created:  21/11/05 20:36:19 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_content_length.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_content_length.c
  *        Filename:  encode_content_length.c
- * 
+ *
  *     Description:  Function to encode content-length headers.
  *     Description:  Function to encode content-length headers.
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  21/11/05 02:02:58 CET
  *         Created:  21/11/05 02:02:58 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_content_type.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_content_type.c
  *        Filename:  encode_content_type.c
- * 
+ *
  *     Description:  [en|de]code content type
  *     Description:  [en|de]code content type
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  21/11/05 20:40:25 CET
  *         Created:  21/11/05 20:40:25 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 8 - 8
src/modules/seas/encode_cseq.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  xaddress.c
  *        Filename:  xaddress.c
- * 
+ *
  *     Description:  Address manipulation tools
  *     Description:  Address manipulation tools
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  17/11/05 02:09:44 CET
  *         Created:  17/11/05 02:09:44 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #define _GNU_SOURCE
 #define _GNU_SOURCE
@@ -61,7 +61,7 @@ int encode_cseq(char *hdrstart, int hdrlen, struct cseq_body *body,
 	unsigned int cseqnum;
 	unsigned int cseqnum;
 	unsigned char i;
 	unsigned char i;
 
 
-	/*which is the first bit set to 1 ? if i==0, the first bit, 
+	/*which is the first bit set to 1 ? if i==0, the first bit,
     * if i==31, the last, if i==32, none*/
     * if i==31, the last, if i==32, none*/
 	for(i = 0; (!(body->method_id & (0x01 << i))) && i < 32; i++)
 	for(i = 0; (!(body->method_id & (0x01 << i))) && i < 32; i++)
 		;
 		;

+ 9 - 9
src/modules/seas/encode_digest.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_digest.c
  *        Filename:  encode_digest.c
- * 
+ *
  *     Description:  functions to encode/decode/print Digest headers ([proxy,www]-[authenticate,require])
  *     Description:  functions to encode/decode/print Digest headers ([proxy,www]-[authenticate,require])
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  20/11/05 04:24:55 CET
  *         Created:  20/11/05 04:24:55 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #define _GNU_SOURCE
 #define _GNU_SOURCE
@@ -73,8 +73,8 @@
  * HAS_QoP_F		0x01
  * HAS_QoP_F		0x01
  * HAS_NC_F		0x02
  * HAS_NC_F		0x02
  * 2: hdr-start based pointer to where the scheme starts + length of the scheme (must be Digest).
  * 2: hdr-start based pointer to where the scheme starts + length of the scheme (must be Digest).
- * 
- * for each field present, there are 2 bytes, one pointing the place where it starts, 
+ *
+ * for each field present, there are 2 bytes, one pointing the place where it starts,
  * the next signaling how long this field is. The URI is a special case, and is composed of 1
  * the next signaling how long this field is. The URI is a special case, and is composed of 1
  * byte telling how long is the URI structure, and then the encoded URI structure.
  * byte telling how long is the URI structure, and then the encoded URI structure.
  */
  */

+ 7 - 7
src/modules/seas/encode_expires.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_expires.c
  *        Filename:  encode_expires.c
- * 
+ *
  *     Description:  functions to [en|de]code expires header
  *     Description:  functions to [en|de]code expires header
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  22/11/05 00:05:54 CET
  *         Created:  22/11/05 00:05:54 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 2 - 2
src/modules/seas/encode_expires.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_header.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  xcontact.c
  *        Filename:  xcontact.c
- * 
+ *
  *     Description:  Contact encoding functions
  *     Description:  Contact encoding functions
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  19/11/05 14:33:38 CET
  *         Created:  19/11/05 14:33:38 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #define _GNU_SOURCE
 #define _GNU_SOURCE

+ 2 - 2
src/modules/seas/encode_header.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 8 - 8
src/modules/seas/encode_msg.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  main.c
  *        Filename:  main.c
- * 
+ *
  *     Description:  functions to encode a message
  *     Description:  functions to encode a message
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  14/11/05 13:42:53 CET
  *         Created:  14/11/05 13:42:53 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 
@@ -259,7 +259,7 @@ int encode_msg(struct sip_msg *msg, char *payload, int len)
 	/*now copy the number of bytes that the headers-meta-section has occupied,right afther
 	/*now copy the number of bytes that the headers-meta-section has occupied,right afther
     * headers-meta-section(the array with ['v',[2:where],'r',[2:where],'R',[2:where],...]
     * headers-meta-section(the array with ['v',[2:where],'r',[2:where],'R',[2:where],...]
     * this is to know where the LAST header ends, since the length of each header-struct
     * this is to know where the LAST header ends, since the length of each header-struct
-    * is calculated substracting the nextHeaderStart - presentHeaderStart 
+    * is calculated substracting the nextHeaderStart - presentHeaderStart
     * the k+1 is because payload[k] is usually the letter*/
     * the k+1 is because payload[k] is usually the letter*/
 	memcpy(&payload[k + 1], &j, 2);
 	memcpy(&payload[k + 1], &j, 2);
 	k += 3;
 	k += 3;

+ 2 - 2
src/modules/seas/encode_msg.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 9 - 9
src/modules/seas/encode_parameters.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_parameters.c
  *        Filename:  encode_parameters.c
- * 
+ *
  *     Description:  Functions to encode/print parameters
  *     Description:  Functions to encode/print parameters
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  25/01/06 17:46:04 CET
  *         Created:  25/01/06 17:46:04 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #define _GNU_SOURCE
 #define _GNU_SOURCE
@@ -50,7 +50,7 @@
 /**
 /**
  * Returns how many bytes in *where have been used
  * Returns how many bytes in *where have been used
  *
  *
- * TODO this is little shitty, someone should unify all the param flavours 
+ * TODO this is little shitty, someone should unify all the param flavours
  * to a sigle universal type of parameter (to_param,param,disposition_param)
  * to a sigle universal type of parameter (to_param,param,disposition_param)
  * the way is done here, at least, we don't have the parameter-hanling code spread all around.
  * the way is done here, at least, we don't have the parameter-hanling code spread all around.
  */
  */
@@ -190,7 +190,7 @@ int encode_parameters(
 			return 0;
 			return 0;
 		/*the first parameter start index, I suppose paramstart points to the first
 		/*the first parameter start index, I suppose paramstart points to the first
        letter of the first parameter: sip:[email protected];param1=true;param2=false
        letter of the first parameter: sip:[email protected];param1=true;param2=false
-                                     paramstart points to __^                      
+                                     paramstart points to __^
        each parameter is codified with its {param_name_start_idx,[param_value_start_idx|next_param_start_idx]} */
        each parameter is codified with its {param_name_start_idx,[param_value_start_idx|next_param_start_idx]} */
 		where[j++] = paramstart - hdrstart;
 		where[j++] = paramstart - hdrstart;
 		while(i < paramlen) {
 		while(i < paramlen) {

+ 2 - 2
src/modules/seas/encode_parameters.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_route.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_route.c
  *        Filename:  encode_route.c
- * 
+ *
  *     Description:  functions to encode/decode/print the route header
  *     Description:  functions to encode/decode/print the route header
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  20/11/05 04:24:55 CET
  *         Created:  20/11/05 04:24:55 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 2 - 2
src/modules/seas/encode_route.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_to_body.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  xaddress.c
  *        Filename:  xaddress.c
- * 
+ *
  *     Description:  Address manipulation tools
  *     Description:  Address manipulation tools
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  17/11/05 02:09:44 CET
  *         Created:  17/11/05 02:09:44 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #define _GNU_SOURCE
 #define _GNU_SOURCE

+ 2 - 2
src/modules/seas/encode_to_body.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 13 - 13
src/modules/seas/encode_uri.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  xuri.c
  *        Filename:  xuri.c
- * 
+ *
  *     Description:  first trial to implement xuri
  *     Description:  first trial to implement xuri
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  16/11/05 18:07:24 CET
  *         Created:  16/11/05 18:07:24 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 
@@ -63,9 +63,9 @@
  *
  *
  * 1: The first byte of the structure, is a
  * 1: The first byte of the structure, is a
  * HEADER_START-based pointer to the beginning of the URI
  * HEADER_START-based pointer to the beginning of the URI
- * (including the "sip:").  
- * 1: The next byte is the length of the uri, so URIMAX 
- * is 256 (enough...) 
+ * (including the "sip:").
+ * 1: The next byte is the length of the uri, so URIMAX
+ * is 256 (enough...)
  * 2: Flags specifying the parts that are present in the URI
  * 2: Flags specifying the parts that are present in the URI
  *
  *
  * as follows:
  * as follows:
@@ -102,14 +102,14 @@
  * The reason to have the OTHER and HEADERS flags at the
  * The reason to have the OTHER and HEADERS flags at the
  * beginning(just after the strictly-uri stuff), is that it
  * beginning(just after the strictly-uri stuff), is that it
  * will be necessary to know the length of the parameters
  * will be necessary to know the length of the parameters
- * section and the headers section.  
+ * section and the headers section.
  *
  *
  * The parameters can
  * The parameters can
  * appear in an arbitrary order, so they won't be following
  * appear in an arbitrary order, so they won't be following
  * the convention of transport-ttl-user-method-maddr-lr, so
  * the convention of transport-ttl-user-method-maddr-lr, so
  * we can't rely on the next pointer to compute the length
  * we can't rely on the next pointer to compute the length
- * of the previous pointer field, as the ttl param can 
- * appear before the transport param. so the parameter 
+ * of the previous pointer field, as the ttl param can
+ * appear before the transport param. so the parameter
  * pointers must have 2 bytes: pointer+length.
  * pointers must have 2 bytes: pointer+length.
  *
  *
  */
  */

+ 2 - 2
src/modules/seas/encode_uri.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 7 - 7
src/modules/seas/encode_via.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  encode_via.c
  *        Filename:  encode_via.c
- * 
+ *
  *     Description:  functions to encode VIA headers
  *     Description:  functions to encode VIA headers
- * 
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  21/11/05 02:30:50 CET
  *         Created:  21/11/05 02:30:50 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 
 

+ 2 - 2
src/modules/seas/encode_via.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 11 - 11
src/modules/seas/event_dispatcher.c

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -76,7 +76,7 @@ static int open_server_sockets(
 
 
 
 
 /** Main loop for the Event Dispatcher process.
 /** Main loop for the Event Dispatcher process.
- * 
+ *
  */
  */
 int dispatcher_main_loop(void)
 int dispatcher_main_loop(void)
 {
 {
@@ -348,7 +348,7 @@ int dispatcher_main_loop(void)
 
 
 
 
 /**
 /**
- * opens the server socket, which attends (accepts) the clients, that is: 
+ * opens the server socket, which attends (accepts) the clients, that is:
  * params:
  * params:
  * address:
  * address:
  * 	address to which to listen
  * 	address to which to listen
@@ -423,7 +423,7 @@ union helper
 };
 };
 
 
 /**
 /**
- * Sends event 
+ * Sends event
  *
  *
  * returns
  * returns
  * 	 0  OK
  * 	 0  OK
@@ -570,7 +570,7 @@ static inline int add_new_as(int event_idx, int action_idx, struct as_entry *as)
 			}
 			}
 		}
 		}
 	}
 	}
-	/*TODO attention, this is pkg_malloc because only the Event_Dispatcher process 
+	/*TODO attention, this is pkg_malloc because only the Event_Dispatcher process
     * has to use it !!*/
     * has to use it !!*/
 	if(!(the_as->ev_buffer.s = pkg_malloc(AS_BUF_SIZE))) {
 	if(!(the_as->ev_buffer.s = pkg_malloc(AS_BUF_SIZE))) {
 		LM_ERR("unable to alloc pkg mem for the event buffer\n");
 		LM_ERR("unable to alloc pkg mem for the event buffer\n");
@@ -769,14 +769,14 @@ again:
 /**
 /**
  * This function processess the Application Server buffer. We do buffered
  * This function processess the Application Server buffer. We do buffered
  * processing because it increases performance quite a bit. Any message
  * processing because it increases performance quite a bit. Any message
- * sent from the AS comes with the first 2 bytes as an NBO unsigned short int 
+ * sent from the AS comes with the first 2 bytes as an NBO unsigned short int
  * which says the length of the following message (header and payload).
  * which says the length of the following message (header and payload).
  * This way, we avoid multiple small reads() to the socket, which (as we know), consumes
  * This way, we avoid multiple small reads() to the socket, which (as we know), consumes
  * far more processor because of the kernel read(2) system call. The drawback
  * far more processor because of the kernel read(2) system call. The drawback
  * is the added complexity of maintaining a buffer, the bytes read, and looking
  * is the added complexity of maintaining a buffer, the bytes read, and looking
  * if there is a complete message already prepared.
  * if there is a complete message already prepared.
  *
  *
- * Actions are supposed to be small, that's why BUF_SIZE is 2000 bytes length. 
+ * Actions are supposed to be small, that's why BUF_SIZE is 2000 bytes length.
  * Most of the actions will be that size or less. That is why the 4 bytes telling the
  * Most of the actions will be that size or less. That is why the 4 bytes telling the
  * length of the Action payload are included in its size. This way you can use a fixed size
  * length of the Action payload are included in its size. This way you can use a fixed size
  * buffer to receive the Actions and not need to be pkb_malloc'ing for each new event.
  * buffer to receive the Actions and not need to be pkb_malloc'ing for each new event.
@@ -1019,7 +1019,7 @@ static int handle_unc_as_data(int fd)
 		return -2;
 		return -2;
 	}
 	}
 	unc_as_t[i].flags |= HAS_NAME;
 	unc_as_t[i].flags |= HAS_NAME;
-	/* the loop's upper bound, 
+	/* the loop's upper bound,
     * if 'i' is in the lower part, then look for an unc_as in the upper part*/
     * if 'i' is in the lower part, then look for an unc_as in the upper part*/
 	k = (i >= MAX_UNC_AS_NR ? MAX_UNC_AS_NR : 2 * MAX_UNC_AS_NR);
 	k = (i >= MAX_UNC_AS_NR ? MAX_UNC_AS_NR : 2 * MAX_UNC_AS_NR);
 	/* the loop's lower bound */
 	/* the loop's lower bound */
@@ -1087,14 +1087,14 @@ try_again2:
 	return namelen;
 	return namelen;
 }
 }
 
 
-/* handle new App Server connect. 
+/* handle new App Server connect.
  * params:
  * params:
  * fd:
  * fd:
  * 	fd on which to accept.
  * 	fd on which to accept.
  * which:
  * which:
  * 	if the fd is the event one, which='e', if is action, which='a'
  * 	if the fd is the event one, which='e', if is action, which='a'
  *
  *
- * TODO: not very reliable, because if someone connects() to one of the serversockets 
+ * TODO: not very reliable, because if someone connects() to one of the serversockets
  * but not to the other one, then synchronization would be lost, and any subsequent connect
  * but not to the other one, then synchronization would be lost, and any subsequent connect
  * attempts would fail (remember, we receive a connect in event[] and wait for a connect in action)
  * attempts would fail (remember, we receive a connect in event[] and wait for a connect in action)
  * the point is, the connects must allways come in pairs, if one comes alone, we lost sync.
  * the point is, the connects must allways come in pairs, if one comes alone, we lost sync.

+ 2 - 2
src/modules/seas/event_dispatcher.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 8 - 8
src/modules/seas/ha.c

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -110,13 +110,13 @@ int print_pingtable(struct ha *ta, int idx, int lock)
 }
 }
 
 
 /**
 /**
- * Parses the PING configuration string. Its format is 
+ * Parses the PING configuration string. Its format is
  * "ping_period:pings_lost:ping_timeout"
  * "ping_period:pings_lost:ping_timeout"
  * ping_period : time between pings
  * ping_period : time between pings
  * pings_lost: number of lost pings before failure
  * pings_lost: number of lost pings before failure
  * ping_timeout: time to consider a ping failed
  * ping_timeout: time to consider a ping failed
  *
  *
- * returns 
+ * returns
  * 0 if config is not set
  * 0 if config is not set
  * -1 if config is malformed (unable to parse);
  * -1 if config is malformed (unable to parse);
  *  1 if config is successfully set
  *  1 if config is successfully set
@@ -378,13 +378,13 @@ void destroy_pingtable(struct ha *table)
 
 
 /**
 /**
  * event_length(4) UNSIGNED INT includes the length 4 bytes itself
  * event_length(4) UNSIGNED INT includes the length 4 bytes itself
- * type(1), 
+ * type(1),
  * processor_id(1), 0 means nobody, 0xFF means everybody, 0<N<0xFF means processor with id=N
  * processor_id(1), 0 means nobody, 0xFF means everybody, 0<N<0xFF means processor with id=N
- * flags(4), 
- * ping_num(4), 
+ * flags(4),
+ * ping_num(4),
  *
  *
  * NOT REENTRANT (uses static local var to store ping seqno.)
  * NOT REENTRANT (uses static local var to store ping seqno.)
- * 
+ *
  * returns
  * returns
  * 	0 on error
  * 	0 on error
  * 	pointer to the buffer on success
  * 	pointer to the buffer on success

+ 2 - 2
src/modules/seas/ha.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 6 - 6
src/modules/seas/seas_action.c

@@ -208,7 +208,7 @@ again:
  * with all the SER processes. With a this ring buffer, the lock_get/release only
  * with all the SER processes. With a this ring buffer, the lock_get/release only
  * involve the SEAS processes.
  * involve the SEAS processes.
  * This function scans the ping structures in the buffer, computing the elapsed time
  * This function scans the ping structures in the buffer, computing the elapsed time
- * from when the ping was sent, so if the ping has timed out, it increases the 
+ * from when the ping was sent, so if the ping has timed out, it increases the
  * timed_out_pings counter. All the timed-out pings are removed from the buffer (the
  * timed_out_pings counter. All the timed-out pings are removed from the buffer (the
  * begin index is incremented). Because the pings are added always at the end
  * begin index is incremented). Because the pings are added always at the end
  * of the buffer, they will always be ordered in increasing time, so when we find one ping
  * of the buffer, they will always be ordered in increasing time, so when we find one ping
@@ -247,7 +247,7 @@ static inline int process_pings(struct ha *the_table)
 	return 0;
 	return 0;
 }
 }
 
 
-/* Because TransactionModule organizes statistics based on process_no, 
+/* Because TransactionModule organizes statistics based on process_no,
  * and process_no are only assigned to SER processes (not to Action dispatchers like us ;)
  * and process_no are only assigned to SER processes (not to Action dispatchers like us ;)
  * we have to simulate we are the FIFO process, so TM thinks that the transactions WE put
  * we have to simulate we are the FIFO process, so TM thinks that the transactions WE put
  * are put by the fifo process...
  * are put by the fifo process...
@@ -418,13 +418,13 @@ int process_pong(struct ha *the_table, unsigned int seqno)
  * @param the_as Application Server structure which sent this action
  * @param the_as Application Server structure which sent this action
  * @param action action payload
  * @param action action payload
  * @param len the length of the payload
  * @param len the length of the payload
- * 
+ *
  * This function cancels a previously initiated UAC Transaction.
  * This function cancels a previously initiated UAC Transaction.
  * it receives the HashIndex and Label of the cell being cancelled
  * it receives the HashIndex and Label of the cell being cancelled
- * and invokes t_cancel_uac from the transactionModule API which 
+ * and invokes t_cancel_uac from the transactionModule API which
  * cancels the transaction.
  * cancels the transaction.
  *
  *
- * Returns: 
+ * Returns:
  * */
  * */
 
 
 int ac_cancel(as_p the_as, unsigned char processor_id, unsigned int flags,
 int ac_cancel(as_p the_as, unsigned char processor_id, unsigned int flags,
@@ -1575,7 +1575,7 @@ exit:
 /**
 /**
  * This function will be called from a SER process when a reply is received for
  * This function will be called from a SER process when a reply is received for
  * the transaction. The SER processes only have access to the EventDispatcher
  * the transaction. The SER processes only have access to the EventDispatcher
- * fifo (not to the ActionDispatcher) so EventDispatcher will be the one who 
+ * fifo (not to the ActionDispatcher) so EventDispatcher will be the one who
  * will send the event to the AppServer.
  * will send the event to the AppServer.
  */
  */
 void uac_cb(struct cell *t, int type, struct tmcb_params *rcvd_params)
 void uac_cb(struct cell *t, int type, struct tmcb_params *rcvd_params)

+ 2 - 2
src/modules/seas/seas_action.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 2 - 2
src/modules/seas/seas_error.h

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 4 - 4
src/modules/seas/statistics.c

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
@@ -217,7 +217,7 @@ void action_stat(struct cell *t)
  * stats socket should be an IP_address:port or unix://path/to_file
  * stats socket should be an IP_address:port or unix://path/to_file
  * TODO handling unix sockets and IPv6 !!
  * TODO handling unix sockets and IPv6 !!
  *
  *
- * returns 
+ * returns
  * 0 if no stats
  * 0 if no stats
  * 1 if stats properly started
  * 1 if stats properly started
  * -1 if error
  * -1 if error
@@ -306,7 +306,7 @@ error:
  * stats socket should be an IP_address:port or unix://path/to_file
  * stats socket should be an IP_address:port or unix://path/to_file
  * TODO handling unix sockets and IPv6 !!
  * TODO handling unix sockets and IPv6 !!
  *
  *
- * returns 
+ * returns
  * 0 if no stats
  * 0 if no stats
  * 1 if stats properly started
  * 1 if stats properly started
  * -1 if error
  * -1 if error

+ 2 - 2
src/modules/seas/statistics.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 8 - 8
src/modules/seas/utils.c

@@ -14,26 +14,26 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 
 /*
 /*
  * =====================================================================================
  * =====================================================================================
- * 
+ *
  *        Filename:  utils.c
  *        Filename:  utils.c
- * 
- *     Description:  
- * 
+ *
+ *     Description:
+ *
  *         Version:  1.0
  *         Version:  1.0
  *         Created:  19/01/06 15:50:33 CET
  *         Created:  19/01/06 15:50:33 CET
  *        Revision:  none
  *        Revision:  none
  *        Compiler:  gcc
  *        Compiler:  gcc
- * 
+ *
  *          Author:  Elias Baixas (EB), [email protected]
  *          Author:  Elias Baixas (EB), [email protected]
  *         Company:  VozTele.com
  *         Company:  VozTele.com
- * 
+ *
  * =====================================================================================
  * =====================================================================================
  */
  */
 #include <sys/types.h>
 #include <sys/types.h>

+ 2 - 2
src/modules/seas/utils.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */
 
 

+ 2 - 2
src/modules/seas/xaddress.h

@@ -14,8 +14,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
  * GNU General Public License for more details.
  *
  *
- * You should have received a copy of the GNU General Public License 
- * along with this program; if not, write to the Free Software 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
  */