*
* You should have received a copy of the GNU Lesser General Public
* License along with this code; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02111-1307 USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "config.h"
{
char *str_val;
char *end_ptr;
- gfloat double_val;
+ gdouble double_val;
str_val = (char *) xmlNodeGetContent (a_node);
double_val = g_ascii_strtod (str_val, &end_ptr);
}
xmlFree (str_val);
- return tp_g_value_slice_new_double (double_val);}
+ return tp_g_value_slice_new_double (double_val);
+}
static GValue *
empathy_plist_parse_boolean (xmlNode *a_node)
return NULL;
}
- return tp_g_value_slice_new_int (bool_val);
+ return tp_g_value_slice_new_boolean (bool_val);
}
static GValue *
GValue *value;
while (cur_node &&
- (xmlStrcmp(cur_node->name, (xmlChar *) "key") != 0)) {
+ (xmlStrcmp (cur_node->name, (xmlChar *) "key") != 0)) {
cur_node = cur_node->next;
}
if (!cur_node) {
parsed_doc = empathy_plist_parse (root_element);
- xmlFreeDoc(doc);
- xmlCleanupParser();
+ xmlFreeDoc (doc);
return parsed_doc;
}
parsed_doc = empathy_plist_parse (root_element);
- xmlFreeDoc(doc);
- xmlCleanupParser();
+ xmlFreeDoc (doc);
return parsed_doc;
}