comparison libpurple/protocols/yahoo/yahoo_filexfer.c @ 30430:351d07aefb09

Kill off many dead assignments and any useless remaining variables. I think some of those QQ ones were actual logic errors, too. Let me know if there were any side-effects that were cut.
author Elliott Sales de Andrade <qulogic@pidgin.im>
date Mon, 23 Aug 2010 00:52:24 +0000
parents d0b0f0d17046
children fc961dfd4122
comparison
equal deleted inserted replaced
30429:922c8c553758 30430:351d07aefb09
1233 static void yahoo_xfer_connected_15(gpointer data, gint source, const gchar *error_message) 1233 static void yahoo_xfer_connected_15(gpointer data, gint source, const gchar *error_message)
1234 { 1234 {
1235 PurpleXfer *xfer; 1235 PurpleXfer *xfer;
1236 struct yahoo_xfer_data *xd; 1236 struct yahoo_xfer_data *xd;
1237 PurpleAccount *account; 1237 PurpleAccount *account;
1238 YahooData* yd; 1238 PurpleConnection *gc;
1239 1239
1240 if (!(xfer = data)) 1240 if (!(xfer = data))
1241 return; 1241 return;
1242 if (!(xd = xfer->data)) 1242 if (!(xd = xfer->data))
1243 return; 1243 return;
1244 yd = xd->gc->proto_data; 1244 gc = xd->gc;
1245 account = purple_connection_get_account(xd->gc); 1245 account = purple_connection_get_account(gc);
1246 if ((source < 0) || (xd->path == NULL) || (xd->host == NULL)) { 1246 if ((source < 0) || (xd->path == NULL) || (xd->host == NULL)) {
1247 purple_xfer_error(PURPLE_XFER_RECEIVE, purple_xfer_get_account(xfer), 1247 purple_xfer_error(PURPLE_XFER_RECEIVE, purple_xfer_get_account(xfer),
1248 xfer->who, _("Unable to connect.")); 1248 xfer->who, _("Unable to connect."));
1249 purple_xfer_cancel_remote(xfer); 1249 purple_xfer_cancel_remote(xfer);
1250 return; 1250 return;
1251 } 1251 }
1252 /* The first time we get here, assemble the tx buffer */ 1252 /* The first time we get here, assemble the tx buffer */
1253 if (xd->txbuflen == 0) 1253 if (xd->txbuflen == 0)
1254 { 1254 {
1255 gchar* cookies; 1255 gchar* cookies;
1256 cookies = yahoo_get_cookies(xd->gc); 1256 cookies = yahoo_get_cookies(gc);
1257 if(purple_xfer_get_type(xfer) == PURPLE_XFER_SEND && xd->status_15 == ACCEPTED) 1257 if(purple_xfer_get_type(xfer) == PURPLE_XFER_SEND && xd->status_15 == ACCEPTED)
1258 { 1258 {
1259 if(xd->info_val_249 == 2) 1259 if(xd->info_val_249 == 2)
1260 { 1260 {
1261 /* sending file via p2p, we are connected as client */ 1261 /* sending file via p2p, we are connected as client */