[asterisk-commits] mmichelson: trunk r277175 - /trunk/channels/sip/reqresp_parser.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 16 11:25:05 CDT 2010


Author: mmichelson
Date: Fri Jul 16 11:25:01 2010
New Revision: 277175

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=277175
Log:
Fix up some weird indentation problems in reqresp_parser.c


Modified:
    trunk/channels/sip/reqresp_parser.c

Modified: trunk/channels/sip/reqresp_parser.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/sip/reqresp_parser.c?view=diff&rev=277175&r1=277174&r2=277175
==============================================================================
--- trunk/channels/sip/reqresp_parser.c (original)
+++ trunk/channels/sip/reqresp_parser.c Fri Jul 16 11:25:01 2010
@@ -75,7 +75,7 @@
 			/* domain-only URI, according to the SIP RFC. */
 			dom = uri;
 			userinfo = "";
-			}
+		}
 
 		*domain = dom;
 	}
@@ -94,7 +94,7 @@
 	parameters = uri;
 	/* strip [?headers] from end of uri  - even if no header pointer exists*/
 	if ((c = strrchr(uri, '?'))) {
-			*c++ = '\0';
+		*c++ = '\0';
 		uri = c;
 		if (headers) {
 			*headers = c;
@@ -114,11 +114,11 @@
 	/* parse parameters */
 	endparams = strchr(parameters,'\0');
 	if ((c = strchr(parameters, ';'))) {
-			*c++ = '\0';
+		*c++ = '\0';
 		parameters = c;
 	} else {
 		parameters = endparams;
-		}
+	}
 
 	if (params) {
 		char *rem = parameters; /* unparsed or unrecognised remainder */
@@ -144,11 +144,11 @@
 			}
 			label = parameters;
 			if ((c = strchr(value, ';'))) {
-			*c++ = '\0';
+				*c++ = '\0';
 				parameters = c;
 			} else {
 				parameters = endparams;
-		}
+			}
 
 			if (!strcmp(label, "transport")) {
 				if (params) {params->transport=value;}
@@ -172,10 +172,10 @@
 			} else {
 				value--;
 				*value = '=';
-				if(c) {
-				c--;
-				*c = ';';
-	}
+				if (c) {
+					c--;
+					*c = ';';
+				}
 			}
 		}
 		if (rem > uri) { /* no headers */




More information about the asterisk-commits mailing list