Mercurial > pidgin
comparison libpurple/protocols/msn/contact.c @ 25455:8387f195c4af
This casting is no longer necessary.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 15 Feb 2009 20:43:41 +0000 |
parents | 3e89d2c6bf93 |
children | b1080a1a2cb0 |
comparison
equal
deleted
inserted
replaced
25453:a946cffda321 | 25455:8387f195c4af |
---|---|
209 fault = xmlnode_get_child(resp->xml, "Body/Fault"); | 209 fault = xmlnode_get_child(resp->xml, "Body/Fault"); |
210 | 210 |
211 if (fault == NULL) { | 211 if (fault == NULL) { |
212 /* No errors */ | 212 /* No errors */ |
213 if (state->cb) | 213 if (state->cb) |
214 ((MsnSoapCallback)state->cb)(req, resp, data); | 214 state->cb(req, resp, data); |
215 msn_callback_state_free(state); | 215 msn_callback_state_free(state); |
216 return; | 216 return; |
217 } | 217 } |
218 | 218 |
219 faultcode_str = xmlnode_get_data(xmlnode_get_child(fault, "faultcode")); | 219 faultcode_str = xmlnode_get_data(xmlnode_get_child(fault, "faultcode")); |
228 (GSourceFunc)msn_contact_request, data); | 228 (GSourceFunc)msn_contact_request, data); |
229 } | 229 } |
230 else | 230 else |
231 { | 231 { |
232 if (state->cb) { | 232 if (state->cb) { |
233 ((MsnSoapCallback)state->cb)(req, resp, data); | 233 state->cb(req, resp, data); |
234 } else { | 234 } else { |
235 /* We don't know how to respond to this faultcode, so log it */ | 235 /* We don't know how to respond to this faultcode, so log it */ |
236 char *str = xmlnode_to_str(fault, NULL); | 236 char *str = xmlnode_to_str(fault, NULL); |
237 purple_debug_error("msn", "Operation {%s} Failed, SOAP Fault was: %s\n", | 237 purple_debug_error("msn", "Operation {%s} Failed, SOAP Fault was: %s\n", |
238 msn_contact_operation_str(state->action), str); | 238 msn_contact_operation_str(state->action), str); |