summaryrefslogtreecommitdiff
path: root/channels
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2010-07-16 16:25:01 +0000
committerMark Michelson <mmichelson@digium.com>2010-07-16 16:25:01 +0000
commit22896499019fa8a59bc973740d503a4db8461b65 (patch)
tree861ecd7ea5ba49aed4adb4a3f6fd876a45b91e1b /channels
parent215fb1ab9fa9be8393be355916bcca6bf13c41d4 (diff)
Fix up some weird indentation problems in reqresp_parser.c
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@277175 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels')
-rw-r--r--channels/sip/reqresp_parser.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/channels/sip/reqresp_parser.c b/channels/sip/reqresp_parser.c
index ddfc304c6..4e9e19175 100644
--- a/channels/sip/reqresp_parser.c
+++ b/channels/sip/reqresp_parser.c
@@ -75,7 +75,7 @@ int parse_uri_full(char *uri, const char *scheme, char **user, char **pass,
/* domain-only URI, according to the SIP RFC. */
dom = uri;
userinfo = "";
- }
+ }
*domain = dom;
}
@@ -94,7 +94,7 @@ int parse_uri_full(char *uri, const char *scheme, char **user, char **pass,
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 @@ int parse_uri_full(char *uri, const char *scheme, char **user, char **pass,
/* 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 @@ int parse_uri_full(char *uri, const char *scheme, char **user, char **pass,
}
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 @@ int parse_uri_full(char *uri, const char *scheme, char **user, char **pass,
} else {
value--;
*value = '=';
- if(c) {
- c--;
- *c = ';';
- }
+ if (c) {
+ c--;
+ *c = ';';
+ }
}
}
if (rem > uri) { /* no headers */