From ff1fa73f33e9223e69cbb71e70b084e3482dce3f Mon Sep 17 00:00:00 2001 From: Jonathan Beck Date: Thu, 29 Jan 2009 22:20:48 +0100 Subject: Fix indent. --- src/xplist.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/xplist.c') 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) if (!xmlStrcmp(node->name, XPLIST_STRING)) { - unsigned char *tmp = xmlNodeGetContent(node); - glong len = strlen((char*)tmp); + unsigned char *tmp = xmlNodeGetContent(node); + glong len = strlen((char *) tmp); glong items_read = 0; glong items_written = 0; GError *error = NULL; int type = xmlDetectCharEncoding(tmp, len); - if (XML_CHAR_ENCODING_UTF8 == type) { - data->unicodeval = g_utf8_to_utf16((char*) tmp, len, &items_read, &items_written, &error); + if (XML_CHAR_ENCODING_UTF8 == type) { + data->unicodeval = g_utf8_to_utf16((char *) tmp, len, &items_read, &items_written, &error); data->type = PLIST_UNICODE; data->length = items_written; - } - else if (XML_CHAR_ENCODING_ASCII == type || XML_CHAR_ENCODING_NONE == type) { + } else if (XML_CHAR_ENCODING_ASCII == type || XML_CHAR_ENCODING_NONE == type) { data->strval = strdup((char *) xmlNodeGetContent(node)); data->type = PLIST_STRING; data->length = strlen(data->strval); -- cgit v1.1-32-gdbae