diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2007-10-26 16:00:59 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2007-10-26 16:00:59 +0800 |
commit | 27f2852a2724aee617ef669587c8663dcbe40c27 (patch) | |
tree | 39c931cef3d7698a35744cc52363498157ab90a7 /e-util/e-xml-utils.c | |
parent | a1794552bd7775f8dbe32a4b7e495ee61a31ab6c (diff) | |
download | gsoc2013-evolution-27f2852a2724aee617ef669587c8663dcbe40c27.tar.gz gsoc2013-evolution-27f2852a2724aee617ef669587c8663dcbe40c27.tar.zst gsoc2013-evolution-27f2852a2724aee617ef669587c8663dcbe40c27.zip |
Warning fixes. - NULL vs 0 - ANSIfication of declarations - missing
2007-10-26 Kjartan Maraas <kmaraas@gnome.org>
* 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
Diffstat (limited to 'e-util/e-xml-utils.c')
-rw-r--r-- | e-util/e-xml-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |