From 27f2852a2724aee617ef669587c8663dcbe40c27 Mon Sep 17 00:00:00 2001 From: Kjartan Maraas Date: Fri, 26 Oct 2007 08:00:59 +0000 Subject: Warning fixes. - NULL vs 0 - ANSIfication of declarations - missing 2007-10-26 Kjartan Maraas * e-config.c: * e-event.c: * e-gui-utils.c: * e-import.c: * e-menu.c: * e-mktemp.c: (get_dir): * e-popup.c: * e-profile-event.c: (e_profile_event_peek): * e-util.c: (get_font_options): * e-xml-utils.c: (e_xml_get_string_prop_by_name), (e_xml_get_string_prop_by_name_with_default), (e_xml_get_translated_string_prop_by_name): Warning fixes. - NULL vs 0 - ANSIfication of declarations - missing include svn path=/trunk/; revision=34428 --- e-util/e-xml-utils.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'e-util/e-xml-utils.c') diff --git a/e-util/e-xml-utils.c b/e-util/e-xml-utils.c index f55006eadf..1a737626a8 100644 --- a/e-util/e-xml-utils.c +++ b/e-util/e-xml-utils.c @@ -373,8 +373,8 @@ e_xml_set_double_prop_by_name(xmlNode *parent, const xmlChar *prop_name, gdouble gchar * e_xml_get_string_prop_by_name (const xmlNode *parent, const xmlChar *prop_name) { - g_return_val_if_fail (parent != NULL, 0); - g_return_val_if_fail (prop_name != NULL, 0); + g_return_val_if_fail (parent != NULL, NULL); + g_return_val_if_fail (prop_name != NULL, NULL); return e_xml_get_string_prop_by_name_with_default (parent, prop_name, NULL); } @@ -385,8 +385,8 @@ e_xml_get_string_prop_by_name_with_default (const xmlNode *parent, const xmlChar xmlChar *prop; gchar *ret_val; - g_return_val_if_fail (parent != NULL, 0); - g_return_val_if_fail (prop_name != NULL, 0); + g_return_val_if_fail (parent != NULL, NULL); + g_return_val_if_fail (prop_name != NULL, NULL); prop = xmlGetProp ((xmlNode *) parent, prop_name); if (prop != NULL) { @@ -416,8 +416,8 @@ e_xml_get_translated_string_prop_by_name (const xmlNode *parent, const xmlChar * gchar *ret_val = NULL; gchar *combined_name; - g_return_val_if_fail (parent != NULL, 0); - g_return_val_if_fail (prop_name != NULL, 0); + g_return_val_if_fail (parent != NULL, NULL); + g_return_val_if_fail (prop_name != NULL, NULL); prop = xmlGetProp ((xmlNode *) parent, prop_name); if (prop != NULL) { -- cgit