Browse code

core: receive.c coherent indentation

Daniel-Constantin Mierla authored on 12/04/2016 11:48:22
Showing 1 changed files
... ...
@@ -1,4 +1,4 @@
1
-/* 
1
+/*
2 2
  * Copyright (C) 2001-2003 FhG Fokus
3 3
  *
4 4
  * This file is part of Kamailio, a free SIP server.
... ...
@@ -13,15 +13,15 @@
13 13
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 14
  * GNU General Public License for more details.
15 15
  *
16
- * You should have received a copy of the GNU General Public License 
17
- * along with this program; if not, write to the Free Software 
16
+ * You should have received a copy of the GNU General Public License
17
+ * along with this program; if not, write to the Free Software
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19 19
  *
20 20
  */
21 21
 
22 22
 /*!
23 23
  * \file
24
- * \brief Kamailio core :: 
24
+ * \brief Kamailio core ::
25 25
  * \ingroup core
26 26
  * Module: \ref core
27 27
  */
... ...
@@ -109,17 +109,17 @@ int sip_check_fline(char* buf, unsigned int len)
109 109
 }
110 110
 
111 111
 /** Receive message
112
- *  WARNING: buf must be 0 terminated (buf[len]=0) or some things might 
112
+ *  WARNING: buf must be 0 terminated (buf[len]=0) or some things might
113 113
  * break (e.g.: modules/textops)
114 114
  */
115
-int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info) 
115
+int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
116 116
 {
117 117
 	struct sip_msg* msg;
118 118
 	struct run_act_ctx ctx;
119 119
 	int ret;
120 120
 #ifdef STATS
121 121
 	int skipped = 1;
122
-	struct timeval tvb, tve;	
122
+	struct timeval tvb, tve;
123 123
 	struct timezone tz;
124 124
 	unsigned int diff;
125 125
 #endif
... ...
@@ -155,14 +155,14 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
155 155
 	msg->buf=buf;
156 156
 	msg->len=len;
157 157
 	/* zero termination (termination of orig message bellow not that
158
-	   useful as most of the work is done with scratch-pad; -jiri  */
158
+	 * useful as most of the work is done with scratch-pad; -jiri  */
159 159
 	/* buf[len]=0; */ /* WARNING: zero term removed! */
160 160
 	msg->rcv=*rcv_info;
161 161
 	msg->id=msg_no;
162 162
 	msg->pid=my_pid();
163 163
 	msg->set_global_address=default_global_address;
164 164
 	msg->set_global_port=default_global_port;
165
-	
165
+
166 166
 	if(likely(sr_msg_time==1)) msg_set_time(msg);
167 167
 
168 168
 	if (parse_msg(buf,len, msg)!=0){
... ...
@@ -202,7 +202,7 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
202 202
 		/* check if necessary to add receive?->moved to forward_req */
203 203
 		/* check for the alias stuff */
204 204
 #ifdef USE_TCP
205
-		if (msg->via1->alias && cfg_get(tcp, tcp_cfg, accept_aliases) && 
205
+		if (msg->via1->alias && cfg_get(tcp, tcp_cfg, accept_aliases) &&
206 206
 				(((rcv_info->proto==PROTO_TCP) && !tcp_disable)
207 207
 #ifdef USE_TLS
208 208
 					|| ((rcv_info->proto==PROTO_TLS) && !tls_disable)
... ...
@@ -224,10 +224,10 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
224 224
 #endif
225 225
 		/* execute pre-script callbacks, if any; -jiri */
226 226
 		/* if some of the callbacks said not to continue with
227
-		   script processing, don't do so
228
-		   if we are here basic sanity checks are already done
229
-		   (like presence of at least one via), so you can count
230
-		   on via1 being parsed in a pre-script callback --andrei
227
+		 * script processing, don't do so
228
+		 * if we are here basic sanity checks are already done
229
+		 * (like presence of at least one via), so you can count
230
+		 * on via1 being parsed in a pre-script callback --andrei
231 231
 		*/
232 232
 		if (exec_pre_script_cb(msg, REQUEST_CB_TYPE)==0 )
233 233
 		{
... ...
@@ -266,13 +266,13 @@ int receive_msg(char* buf, unsigned int len, struct receive_info* rcv_info)
266 266
 		gettimeofday( & tvb, &tz );
267 267
 		STATS_RX_RESPONSE ( msg->first_line.u.reply.statuscode / 100 );
268 268
 #endif
269
-		
269
+
270 270
 		/* execute pre-script callbacks, if any; -jiri */
271 271
 		/* if some of the callbacks said not to continue with
272
-		   script processing, don't do so
273
-		   if we are here basic sanity checks are already done
274
-		   (like presence of at least one via), so you can count
275
-		   on via1 being parsed in a pre-script callback --andrei
272
+		 * script processing, don't do so
273
+		 * if we are here basic sanity checks are already done
274
+		 * (like presence of at least one via), so you can count
275
+		 * on via1 being parsed in a pre-script callback --andrei
276 276
 		*/
277 277
 		if (exec_pre_script_cb(msg, ONREPLY_CB_TYPE)==0 )
278 278
 		{