diff options
| author | 2009-01-29 22:20:48 +0100 | |
|---|---|---|
| committer | 2009-01-29 22:20:48 +0100 | |
| commit | ff1fa73f33e9223e69cbb71e70b084e3482dce3f (patch) | |
| tree | fdd756e97501a62f1229044e1fe6233447a0fb23 /src/xplist.c | |
| parent | 7bb672f801c3a245b38535f5a33f9fffa88c683c (diff) | |
| download | libplist-ff1fa73f33e9223e69cbb71e70b084e3482dce3f.tar.gz libplist-ff1fa73f33e9223e69cbb71e70b084e3482dce3f.tar.bz2 | |
Fix indent.
Diffstat (limited to 'src/xplist.c')
| -rw-r--r-- | src/xplist.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/xplist.c b/src/xplist.c index 0c1a6b9..20b2795 100644 --- a/src/xplist.c +++ b/src/xplist.c | |||
| @@ -289,19 +289,18 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node) | |||
| 289 | 289 | ||
| 290 | if (!xmlStrcmp(node->name, XPLIST_STRING)) { | 290 | if (!xmlStrcmp(node->name, XPLIST_STRING)) { |
| 291 | 291 | ||
| 292 | unsigned char *tmp = xmlNodeGetContent(node); | 292 | unsigned char *tmp = xmlNodeGetContent(node); |
| 293 | glong len = strlen((char*)tmp); | 293 | glong len = strlen((char *) tmp); |
| 294 | glong items_read = 0; | 294 | glong items_read = 0; |
| 295 | glong items_written = 0; | 295 | glong items_written = 0; |
| 296 | GError *error = NULL; | 296 | GError *error = NULL; |
| 297 | int type = xmlDetectCharEncoding(tmp, len); | 297 | int type = xmlDetectCharEncoding(tmp, len); |
| 298 | 298 | ||
| 299 | if (XML_CHAR_ENCODING_UTF8 == type) { | 299 | if (XML_CHAR_ENCODING_UTF8 == type) { |
| 300 | data->unicodeval = g_utf8_to_utf16((char*) tmp, len, &items_read, &items_written, &error); | 300 | data->unicodeval = g_utf8_to_utf16((char *) tmp, len, &items_read, &items_written, &error); |
| 301 | data->type = PLIST_UNICODE; | 301 | data->type = PLIST_UNICODE; |
| 302 | data->length = items_written; | 302 | data->length = items_written; |
| 303 | } | 303 | } else if (XML_CHAR_ENCODING_ASCII == type || XML_CHAR_ENCODING_NONE == type) { |
| 304 | else if (XML_CHAR_ENCODING_ASCII == type || XML_CHAR_ENCODING_NONE == type) { | ||
| 305 | data->strval = strdup((char *) xmlNodeGetContent(node)); | 304 | data->strval = strdup((char *) xmlNodeGetContent(node)); |
| 306 | data->type = PLIST_STRING; | 305 | data->type = PLIST_STRING; |
| 307 | data->length = strlen(data->strval); | 306 | data->length = strlen(data->strval); |
