changeset 28681:f043c5a07042

Use g_str_equal()
author Paul Aurich <paul@darkrain42.org>
date Mon, 30 Nov 2009 02:40:30 +0000
parents 2ac6d4c56a43
children a69af5cb09cd eb4081c68c57
files libpurple/protocols/jabber/parser.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/jabber/parser.c	Mon Nov 30 02:00:13 2009 +0000
+++ b/libpurple/protocols/jabber/parser.c	Mon Nov 30 02:40:30 2009 +0000
@@ -145,7 +145,7 @@
 	JabberStream *js = user_data;
 
 	if (error->level == XML_ERR_WARNING && error->message != NULL
-			&& strcmp(error->message, "xmlns: URI vcard-temp is not absolute\n") == 0)
+			&& g_str_equal(error->message, "xmlns: URI vcard-temp is not absolute\n"))
 		/*
 		 * This message happens when parsing vcards, and is normal, so don't
 		 * bother logging it because people scare easily.
@@ -153,7 +153,7 @@
 		return;
 
 	if (error->level == XML_ERR_FATAL && error->message != NULL
-			&& strcmp(error->message, "Extra content at the end of the document\n") == 0)
+			&& g_str_equal(error->message, "Extra content at the end of the document\n"))
 		/*
 		 * This is probably more annoying than the vcard-temp error; it occurs
 		 * because we disconnect in most cases without waiting for the receiving