libpurple/protocols/yahoo/yahoo_picture.c

branch
soc.2013.gobjectification
changeset 34878
41b9075c7714
parent 34875
36dc1485f201
parent 34287
6cd0c77b1f6a
child 35265
77664079d0f0
child 36543
a8c3fecee2d3
--- a/libpurple/protocols/yahoo/yahoo_picture.c	Fri Aug 09 22:52:59 2013 +0530
+++ b/libpurple/protocols/yahoo/yahoo_picture.c	Fri Aug 09 23:12:25 2013 +0530
@@ -50,7 +50,7 @@
 {
 	struct yahoo_fetch_picture_data *d = _data;
 
-	if (!purple_http_response_is_successfull(response)) {
+	if (!purple_http_response_is_successful(response)) {
 		purple_debug_error("yahoo", "Fetching buddy icon failed: %s\n",
 			purple_http_response_get_error(response));
 	} else {
@@ -344,7 +344,7 @@
 
 	yd->picture_upload_hc = NULL;
 
-	if (!purple_http_response_is_successfull(response))
+	if (!purple_http_response_is_successful(response))
 		purple_debug_info("yahoo", "Error uploading buddy icon.\n");
 	else
 		purple_debug_misc("yahoo", "Finished uploading buddy icon.\n");
@@ -402,10 +402,9 @@
 	purple_http_conn_cancel(yd->picture_upload_hc);
 
 	req = purple_http_request_new(NULL);
-	purple_http_request_set_url_printf(req, "http://%s:%d/notifyft",
+	purple_http_request_set_url_printf(req, "http://%s/notifyft",
 		purple_account_get_string(account, "xfer_host", yd->jp ?
-			YAHOOJP_XFER_HOST : YAHOO_XFER_HOST),
-		purple_account_get_int(account, "xfer_port", YAHOO_XFER_PORT));
+			YAHOOJP_XFER_HOST : YAHOO_XFER_HOST));
 	purple_http_request_set_method(req, "POST");
 	cjar = purple_http_request_get_cookie_jar(req);
 	purple_http_cookie_jar_set(cjar, "T", yd->cookie_t);

mercurial