Browse Source

registrar: coherent indentation and whitespacing

Daniel-Constantin Mierla 9 years ago
parent
commit
90350e2a71

+ 3 - 3
modules/registrar/api.c

@@ -1,5 +1,5 @@
 /*
- * Functions that process REGISTER message 
+ * Functions that process REGISTER message
  * and store data in usrloc
  *
  * Copyright (C) 2010 Daniel-Constantin Mierla (asipto.com)
@@ -16,8 +16,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */

+ 3 - 3
modules/registrar/api.h

@@ -1,5 +1,5 @@
 /*
- * Functions that process REGISTER message 
+ * Functions that process REGISTER message
  * and store data in usrloc
  *
  * Copyright (C) 2010 Daniel-Constantin Mierla (asipto.com)
@@ -16,8 +16,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */

+ 7 - 7
modules/registrar/common.c

@@ -15,10 +15,10 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
- *	
+ *
  */
 
 /*!
@@ -27,7 +27,7 @@
  * \ingroup registrar
  */
 
-#include <string.h> 
+#include <string.h>
 #include "../../dprint.h"
 #include "rerrno.h"
 #include "registrar.h"
@@ -48,7 +48,7 @@ int extract_aor(str* _uri, str* _a, sip_uri_t *_pu)
 	int user_len;
 	str *uri;
 	str realm_prefix = {0};
-	
+
 	memset(aor_buf, 0, MAX_AOR_LEN);
 	uri=_uri;
 
@@ -62,7 +62,7 @@ int extract_aor(str* _uri, str* _a, sip_uri_t *_pu)
 		LM_ERR("failed to parse AoR [%.*s]\n", uri->len, uri->s);
 		return -1;
 	}
-	
+
 	if ( (puri->user.len + puri->host.len + 1) > MAX_AOR_LEN
 	|| puri->user.len > USERNAME_MAX_SIZE
 	||  puri->host.len > DOMAIN_MAX_SIZE ) {
@@ -86,7 +86,7 @@ int extract_aor(str* _uri, str* _a, sip_uri_t *_pu)
 		if (user_len)
 			aor_buf[_a->len++] = '@';
 		/* strip prefix (if defined) */
- 		realm_prefix.len = cfg_get(registrar, registrar_cfg, realm_pref).len;
+		realm_prefix.len = cfg_get(registrar, registrar_cfg, realm_pref).len;
 		if(realm_prefix.len>0) {
 			realm_prefix.s = cfg_get(registrar, registrar_cfg, realm_pref).s;
 			LM_DBG("realm prefix is [%.*s]\n", realm_prefix.len,

+ 4 - 4
modules/registrar/common.h

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - common stuff
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef COMMON_H

+ 2 - 2
modules/registrar/config.c

@@ -18,7 +18,7 @@
  */
 
 /*!
- * \file 
+ * \file
  * \brief Registrar :: Configuration
  * \ingroup Registrar
  */
@@ -41,7 +41,7 @@ struct cfg_group_registrar	default_registrar_cfg = {
 		0,	/* case_sensitive */
 		Q_UNSPECIFIED,	/* default_q */
 		1	/* append_branches */
-	    };
+	};
 
 void	*registrar_cfg = &default_registrar_cfg;
 

+ 3 - 3
modules/registrar/config.h

@@ -4,13 +4,13 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
- * \file 
+ * \file
  * \brief Registrar :: Configuration
  * \ingroup registrar
  */

+ 41 - 41
modules/registrar/lookup.c

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */
 /*!
  * \file
  * \brief SIP registrar module - lookup contacts in usrloc
- * \ingroup registrar  
- */  
+ * \ingroup registrar
+ */
 
 
 #include <string.h>
@@ -82,14 +82,14 @@ int reg_cmp_instances(str *i1, str *i2)
  * Lookup a contact in usrloc and rewrite R-URI if found
  */
 int lookup(struct sip_msg* _m, udomain_t* _d, str* _uri) {
-     return lookup_helper(_m, _d, _uri, 0);
+	return lookup_helper(_m, _d, _uri, 0);
 }
 
 /*! \brief
  * Lookup a contact in usrloc and add the records to the dset structure
  */
 int lookup_to_dset(struct sip_msg* _m, udomain_t* _d, str* _uri) {
-     return lookup_helper(_m, _d, _uri, 1);
+	return lookup_helper(_m, _d, _uri, 1);
 }
 
 /*! \brief
@@ -168,7 +168,7 @@ int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode)
 
 	if (_m->new_uri.s) uri = _m->new_uri;
 	else uri = _m->first_line.u.request.uri;
-	
+
 	if (extract_aor((_uri)?_uri:&uri, &aor, &puri) < 0) {
 		LM_ERR("failed to extract address of record\n");
 		return -3;
@@ -340,26 +340,26 @@ int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode)
 		}
 
 		if (ptr->instance.len) {
-		    if (set_instance(_m, &(ptr->instance)) < 0) {
+			if (set_instance(_m, &(ptr->instance)) < 0) {
 				ret = -3;
 				goto done;
-		    }
+			}
 		}
-		
+
 		_m->reg_id = ptr->reg_id;
 
 		if (ptr->ruid.len) {
-		    if (set_ruid(_m, &(ptr->ruid)) < 0) {
+			if (set_ruid(_m, &(ptr->ruid)) < 0) {
 				ret = -3;
 				goto done;
-		    }
+			}
 		}
 
 		if (ptr->user_agent.len) {
-		    if (set_ua(_m, &(ptr->user_agent)) < 0) {
+			if (set_ua(_m, &(ptr->user_agent)) < 0) {
 				ret = -3;
 				goto done;
-		    }
+			}
 		}
 
 		set_ruri_q(ptr->q);
@@ -422,18 +422,18 @@ int lookup_helper(struct sip_msg* _m, udomain_t* _d, str* _uri, int _mode)
 				path_dst.len = 0;
 			}
 
-			/* The same as for the first contact applies for branches 
+			/* The same as for the first contact applies for branches
 			 * regarding path vs. received. */
 			LM_DBG("instance is %.*s\n",
-			       ptr->instance.len, ptr->instance.s);
+				ptr->instance.len, ptr->instance.s);
 			if (append_branch(_m, &ptr->c,
-					  path_dst.len?&path_dst:&ptr->received,
-					  path_dst.len?&path_str:0, ptr->q, ptr->cflags,
-					  ptr->sock,
-					  ptr->instance.len?&(ptr->instance):0,
-				          ptr->instance.len?ptr->reg_id:0,
-					  &ptr->ruid, &ptr->user_agent)
-			    == -1) {
+					path_dst.len?&path_dst:&ptr->received,
+					path_dst.len?&path_str:0, ptr->q, ptr->cflags,
+					ptr->sock,
+					ptr->instance.len?&(ptr->instance):0,
+						ptr->instance.len?ptr->reg_id:0,
+						&ptr->ruid, &ptr->user_agent)
+					== -1) {
 				LM_ERR("failed to append a branch\n");
 				/* Also give a chance to the next branches*/
 				continue;
@@ -484,19 +484,19 @@ int clear_ruri_branch(sip_msg_t *msg)
  */
 int reset_ruri_branch(sip_msg_t *msg)
 {
-    if(msg==NULL)
-        return -1;
-
-    reset_dst_uri(msg);
-    reset_path_vector(msg);
-    set_ruri_q(Q_UNSPECIFIED);
-    reset_force_socket(msg);
-    setbflagsval(0, 0);
-    reset_instance(msg);
-    msg->reg_id = 0;
-    reset_ruid(msg);
-    reset_ua(msg);
-    return 0;
+	if(msg==NULL)
+		return -1;
+
+	reset_dst_uri(msg);
+	reset_path_vector(msg);
+	set_ruri_q(Q_UNSPECIFIED);
+	reset_force_socket(msg);
+	setbflagsval(0, 0);
+	reset_instance(msg);
+	msg->reg_id = 0;
+	reset_ruid(msg);
+	reset_ua(msg);
+	return 0;
 }
 
 /*! \brief
@@ -681,12 +681,12 @@ int registered4(struct sip_msg* _m, udomain_t* _d, str* _uri, int match_flag, in
 			else uri = _m->first_line.u.request.uri;
 		}
 	}
-	
+
 	if (extract_aor(&uri, &aor, NULL) < 0) {
 		LM_ERR("failed to extract address of record\n");
 		return -1;
 	}
-	
+
 	ul.lock_udomain(_d, &aor);
 	res = ul.get_urecord(_d, &aor, &r);
 
@@ -726,17 +726,17 @@ int registered4(struct sip_msg* _m, udomain_t* _d, str* _uri, int match_flag, in
 			if(!VALID_CONTACT(ptr, act_time)) continue;
 			if (match_callid.s && /* optionally enforce tighter matching w/ Call-ID */
 				match_callid.len > 0 &&
-				(match_callid.len != ptr->callid.len || 
+				(match_callid.len != ptr->callid.len ||
 				memcmp(match_callid.s, ptr->callid.s, match_callid.len)))
 				continue;
 			if (match_received.s && /* optionally enforce tighter matching w/ ip:port */
 				match_received.len > 0 &&
-				(match_received.len != ptr->received.len || 
+				(match_received.len != ptr->received.len ||
 				memcmp(match_received.s, ptr->received.s, match_received.len)))
 				continue;
 			if (match_contact.s && /* optionally enforce tighter matching w/ Contact */
 				match_contact.len > 0 &&
-				(match_contact.len != ptr->c.len || 
+				(match_contact.len != ptr->c.len ||
 				memcmp(match_contact.s, ptr->c.s, match_contact.len)))
 				continue;
 

+ 4 - 4
modules/registrar/lookup.h

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - lookup contacts in usrloc
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef LOOKUP_H

+ 8 - 8
modules/registrar/path.c

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */
 /*!
  * \file
  * \brief SIP registrar module - Helper functions for Path support
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #include "../../data_lump.h"
@@ -98,11 +98,11 @@ int build_path_vector(struct sip_msg *_m, str *path, str *received)
 			free_params(params);
 
 			if (hooks.contact.received) {
-			        uri_str.s = uri_buf;
+				uri_str.s = uri_buf;
 				uri_str.len = MAX_URI_SIZE;
-			        if (unescape_user(&(hooks.contact.received->body), &uri_str) < 0) {
-				        LM_ERR("unescaping received failed\n");
-				        goto error;
+				if (unescape_user(&(hooks.contact.received->body), &uri_str) < 0) {
+					LM_ERR("unescaping received failed\n");
+					goto error;
 				}
 				*received = uri_str;
 				LM_DBG("received is <%.*s>\n", received->len, received->s);

+ 2 - 2
modules/registrar/path.h

@@ -23,8 +23,8 @@
 /*!
  * \file
  * \brief SIP registrar module - helper functions for Path support
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 #ifndef REG_PATH_H
 #define REG_PATH_H

+ 15 - 17
modules/registrar/registrar.c

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */
@@ -24,15 +24,15 @@
 /*!
  * \defgroup registrar Registrar :: SIP Registrar support
  * The module contains REGISTER processing logic.
- */  
+ */
 
 /*!
  * \file
  * \brief SIP registrar module - interface
- * \ingroup registrar   
+ * \ingroup registrar
  *
  * - Module: \ref registrar
- */  
+ */
 
 #include <stdio.h>
 #include "../../sr_module.h"
@@ -89,12 +89,12 @@ int tcp_persistent_flag = -1;			/*!< if the TCP connection should be kept open *
 int method_filtering = 0;			/*!< if the looked up contacts should be filtered based on supported methods */
 int path_enabled = 0;				/*!< if the Path HF should be handled */
 int path_mode = PATH_MODE_STRICT;		/*!< if the Path HF should be inserted in the reply.
- 			*   - STRICT (2): always insert, error if no support indicated in request
- 			*   - LAZY   (1): insert only if support indicated in request
- 			*   - OFF    (0): never insert */
+			*   - STRICT (2): always insert, error if no support indicated in request
+			*   - LAZY   (1): insert only if support indicated in request
+			*   - OFF    (0): never insert */
 
 int path_use_params = 0;			/*!< if the received- and nat-parameters of last Path uri should be used
- 						 * to determine if UAC is nat'ed */
+						 * to determine if UAC is nat'ed */
 int path_check_local = 0;
 
 /* sruid to get internal uid */
@@ -179,7 +179,7 @@ static cmd_export_t cmds[] = {
 			REQUEST_ROUTE| FAILURE_ROUTE },
 	{"unregister",   (cmd_function)w_unregister2, 3, unreg_fixup, 0,
 			REQUEST_ROUTE| FAILURE_ROUTE },
-	{"reg_fetch_contacts", (cmd_function)pv_fetch_contacts, 3, 
+	{"reg_fetch_contacts", (cmd_function)pv_fetch_contacts, 3,
 			fetchc_fixup, 0,
 			REQUEST_ROUTE| FAILURE_ROUTE },
 	{"reg_free_contacts", (cmd_function)pv_free_contacts,   1,
@@ -246,7 +246,7 @@ stat_export_t mod_stats[] = {
  * Module exports structure
  */
 struct module_exports exports = {
-	"registrar", 
+	"registrar",
 	DEFAULT_DLFLAGS, /* dlopen flags */
 	cmds,        /* Exported functions */
 	params,      /* Exported parameters */
@@ -288,13 +288,11 @@ static int mod_init(void)
 		LM_ERR("cannot bind to SL API\n");
 		return -1;
 	}
-	
+
 	if(cfg_declare("registrar", registrar_cfg_def, &default_registrar_cfg, cfg_sizeof(registrar), &registrar_cfg)){
 		LM_ERR("Fail to declare the configuration\n");
-	        return -1;
+		return -1;
 	}
-	                                                
-	                                                
 
 	if (rcv_avp_param && *rcv_avp_param) {
 		s.s = rcv_avp_param; s.len = strlen(s.s);
@@ -539,11 +537,11 @@ static int w_unregister(struct sip_msg* _m, char* _d, char* _uri)
 
 static int w_unregister2(struct sip_msg* _m, char* _d, char* _uri, char *_ruid)
 {
-        str uri = {0, 0};
+	str uri = {0, 0};
 	str ruid = {0};
 	if(fixup_get_svalue(_m, (gparam_p)_uri, &uri)!=0)
 	{
-	        LM_ERR("invalid uri parameter\n");
+		LM_ERR("invalid uri parameter\n");
 		return -1;
 	}
 	if(fixup_get_svalue(_m, (gparam_p)_ruid, &ruid)!=0 || ruid.len<=0)

+ 8 - 8
modules/registrar/registrar.h

@@ -1,4 +1,4 @@
-/* 
+/*
  * registrar module interface
  *
  * Copyright (C) 2001-2003 FhG Fokus
@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */
@@ -24,8 +24,8 @@
 /*!
  * \file
  * \brief SIP registrar module - interface
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef REG_MOD_H
@@ -37,7 +37,7 @@
 #include "../usrloc/usrloc.h"
 #include "../../modules/sl/sl.h"
 
-/* if DB support is used, this values must not exceed the 
+/* if DB support is used, this values must not exceed the
  * storage capacity of the DB columns! See db/schema/entities.xml */
 #define CONTACT_MAX_SIZE       255
 #define RECEIVED_MAX_SIZE      255
@@ -62,8 +62,8 @@
 #define REG_REGID_ALWAYS        1
 
 /* Maximum of 999 to keep flow-timer to 3 digits
-   - make sure to update reply.c:add_flow_timer() if the number of digits
-     increases! */
+ * - make sure to update reply.c:add_flow_timer() if the number of digits
+ *   increases! */
 #define REG_FLOW_TIMER_MAX	999
 
 extern int nat_flag;

+ 14 - 14
modules/registrar/regpv.c

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - export contacts as PV
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #include <string.h>
@@ -301,7 +301,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 			break;
 		pa.s++;
 	}
-	
+
 	if(pa.s >= in->s + in->len - 2)
 	{
 		LM_ERR("invalid contact pv name %.*s\n", in->len, in->s);
@@ -339,17 +339,17 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 
 	switch(pa.len)
 	{
-		case 1: 
+		case 1:
 			if(strncmp(pa.s, "q", 1)==0)
 				rp->attr = 8;
 			else goto error;
 		break;
-		case 3: 
+		case 3:
 			if(strncmp(pa.s, "aor", 3)==0)
 				rp->attr = 0;
 			else goto error;
 		break;
-		case 4: 
+		case 4:
 			if(strncmp(pa.s, "addr", 4)==0)
 				rp->attr = 3;
 			else if(strncmp(pa.s, "path", 4)==0)
@@ -360,7 +360,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 				rp->attr = 18;
 			else goto error;
 		break;
-		case 5: 
+		case 5:
 			if(strncmp(pa.s, "flags", 5)==0)
 				rp->attr = 10;
 			else if(strncmp(pa.s, "count", 5)==0)
@@ -371,7 +371,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 				rp->attr = 21;
 			else goto error;
 		break;
-		case 6: 
+		case 6:
 			if(strncmp(pa.s, "domain", 6)==0)
 				rp->attr = 1;
 			else if(strncmp(pa.s, "callid", 6)==0)
@@ -382,7 +382,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 				rp->attr = 14;
 			else goto error;
 		break;
-		case 7: 
+		case 7:
 			if(strncmp(pa.s, "aorhash", 7)==0)
 				rp->attr = 2;
 			else if(strncmp(pa.s, "expires", 7)==0)
@@ -391,7 +391,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 				rp->attr = 16;
 			else goto error;
 		break;
-		case 8: 
+		case 8:
 			if(strncmp(pa.s, "received", 8)==0)
 				rp->attr = 5;
 			else if(strncmp(pa.s, "modified", 8)==0)
@@ -400,7 +400,7 @@ int pv_parse_ulc_name(pv_spec_p sp, str *in)
 				rp->attr = 20;
 			else goto error;
 		break;
-		case 10: 
+		case 10:
 			if(strncmp(pa.s, "user_agent", 10)==0)
 				rp->attr = 12;
 			else goto error;
@@ -504,7 +504,7 @@ int pv_fetch_contacts(struct sip_msg* msg, char* table, char* uri,
 		memcpy(c0->c.s, ptr->c.s, ptr->c.len);
 		c0->c.len = ptr->c.len;
 		p = c0->c.s + c0->c.len;
-		
+
 		if(ptr->received.s!=NULL)
 		{
 			c0->received.s = p;

+ 4 - 4
modules/registrar/regpv.h

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - export contacts as PV
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef _REGPV_H_

+ 2 - 2
modules/registrar/regtime.c

@@ -15,8 +15,8 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 

+ 4 - 4
modules/registrar/regtime.h

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - time related functions
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef REGTIME_H

+ 4 - 4
modules/registrar/reply.h

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - send a reply
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef REPLY_H

+ 4 - 4
modules/registrar/rerrno.c

@@ -15,16 +15,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - registrar errno
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #include "rerrno.h"

+ 5 - 5
modules/registrar/save.h

@@ -1,5 +1,5 @@
 /*
- * Functions that process REGISTER message 
+ * Functions that process REGISTER message
  * and store data in usrloc
  *
  * Copyright (C) 2001-2003 FhG Fokus
@@ -16,16 +16,16 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  *
  */
 /*!
  * \file
  * \brief SIP registrar module - process REGISTER message
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef SAVE_H

+ 5 - 5
modules/registrar/sip_msg.c

@@ -15,22 +15,22 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 
 /*!
  * \file
  * \brief SIP registrar module - SIP message related functions
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 
 #include "../../parser/hf.h"
 #include "../../dprint.h"
-#include "../../parser/parse_expires.h"  
+#include "../../parser/parse_expires.h"
 #include "../../ut.h"
 #include "../../qvalue.h"
 #include "registrar.h"                     /* Module parameters */

+ 4 - 4
modules/registrar/sip_msg.h

@@ -15,15 +15,15 @@
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * 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
  */
 /*!
  * \file
  * \brief SIP registrar module - SIP message related functions
- * \ingroup registrar   
- */  
+ * \ingroup registrar
+ */
 
 
 #ifndef SIP_MSG_H