diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2008-01-28 10:38:40 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2008-01-28 10:38:40 +0000 |
commit | ba255beb79afb9c00ae5b71821f84f911aa8d1fe (patch) | |
tree | 66707895eb4596df0e8054052f95f07560927e2f /common/sdp-xml.c | |
parent | d352bd04383f1c1a5ec17e267cb8d0ce70720519 (diff) |
Whitespace cleanup
Diffstat (limited to 'common/sdp-xml.c')
-rw-r--r-- | common/sdp-xml.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/common/sdp-xml.c b/common/sdp-xml.c index 5aeca405..bf3eb0c3 100644 --- a/common/sdp-xml.c +++ b/common/sdp-xml.c @@ -237,7 +237,7 @@ static void convert_raw_data_to_xml(sdp_data_t *value, int indent_level, hex = 0; int num_chars_to_escape = 0; - + for (i = 0; i < value->unitSize; i++) { if (i == (value->unitSize - 1) && value->val.str[i] == '\0') @@ -246,16 +246,15 @@ static void convert_raw_data_to_xml(sdp_data_t *value, int indent_level, hex = 1; break; } - + /* XML is evil, must do this... */ if ((value->val.str[i] == '<') || - (value->val.str[i] == '>') || - (value->val.str[i] == '"') || - (value->val.str[i] == '&')) - num_chars_to_escape++; - + (value->val.str[i] == '>') || + (value->val.str[i] == '"') || + (value->val.str[i] == '&')) + num_chars_to_escape++; } - + appender(data, indent); appender(data, "<text "); @@ -340,10 +339,10 @@ static void convert_raw_data_to_xml(sdp_data_t *value, int indent_level, convert_raw_data_to_xml(value->val.dataseq, indent_level + 1, data, appender); - + appender(data, indent); appender(data, "</sequence>\n"); - + break; case SDP_ALT8: @@ -358,7 +357,7 @@ static void convert_raw_data_to_xml(sdp_data_t *value, int indent_level, appender(data, indent); appender(data, "</alternate>\n"); - + break; } @@ -577,7 +576,7 @@ sdp_data_t *sdp_xml_parse_int(const char * data, uint8_t dtd) case SDP_INT64: { int64_t val = strtoull(data, &endptr, 0); - + /* Failed to parse */ if ((endptr != data) && (*endptr != '\0')) return NULL; |