diff options
author | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 16:25:01 +0000 |
---|---|---|
committer | mmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-16 16:25:01 +0000 |
commit | 33efacab4bdf3e2bf5c82c6f939e201bba8606ba (patch) | |
tree | 861ecd7ea5ba49aed4adb4a3f6fd876a45b91e1b /channels/sip | |
parent | 42de36a80501b32e139f910074e4170e32a0262e (diff) |
Fix up some weird indentation problems in reqresp_parser.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277175 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/sip')
-rw-r--r-- | channels/sip/reqresp_parser.c | 20 |
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 */ |