Mercurial > pidgin
comparison libpurple/protocols/jabber/parser.c @ 28681:f043c5a07042
Use g_str_equal()
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 30 Nov 2009 02:40:30 +0000 |
parents | 61cd675b73df |
children | eb4081c68c57 f6f35d5960e9 |
comparison
equal
deleted
inserted
replaced
28680:2ac6d4c56a43 | 28681:f043c5a07042 |
---|---|
143 jabber_parser_structured_error_handler(void *user_data, xmlErrorPtr error) | 143 jabber_parser_structured_error_handler(void *user_data, xmlErrorPtr error) |
144 { | 144 { |
145 JabberStream *js = user_data; | 145 JabberStream *js = user_data; |
146 | 146 |
147 if (error->level == XML_ERR_WARNING && error->message != NULL | 147 if (error->level == XML_ERR_WARNING && error->message != NULL |
148 && strcmp(error->message, "xmlns: URI vcard-temp is not absolute\n") == 0) | 148 && g_str_equal(error->message, "xmlns: URI vcard-temp is not absolute\n")) |
149 /* | 149 /* |
150 * This message happens when parsing vcards, and is normal, so don't | 150 * This message happens when parsing vcards, and is normal, so don't |
151 * bother logging it because people scare easily. | 151 * bother logging it because people scare easily. |
152 */ | 152 */ |
153 return; | 153 return; |
154 | 154 |
155 if (error->level == XML_ERR_FATAL && error->message != NULL | 155 if (error->level == XML_ERR_FATAL && error->message != NULL |
156 && strcmp(error->message, "Extra content at the end of the document\n") == 0) | 156 && g_str_equal(error->message, "Extra content at the end of the document\n")) |
157 /* | 157 /* |
158 * This is probably more annoying than the vcard-temp error; it occurs | 158 * This is probably more annoying than the vcard-temp error; it occurs |
159 * because we disconnect in most cases without waiting for the receiving | 159 * because we disconnect in most cases without waiting for the receiving |
160 * </stream:stream> (limitations of libpurple) | 160 * </stream:stream> (limitations of libpurple) |
161 */ | 161 */ |