Mercurial > pidgin.yaz
comparison libpurple/ft.c @ 32690:694111dd6896
Remove the special case of fd=0 in purple_xfer_start().
All the included protocol prpl's seem to do the right thing.
author | andrew.victor@mxit.com |
---|---|
date | Sun, 25 Sep 2011 19:28:12 +0000 |
parents | 48bc3f9f2115 |
children | 5525312cf589 |
comparison
equal
deleted
inserted
replaced
32689:48bc3f9f2115 | 32690:694111dd6896 |
---|---|
1436 g_return_if_fail(purple_xfer_get_type(xfer) != PURPLE_XFER_UNKNOWN); | 1436 g_return_if_fail(purple_xfer_get_type(xfer) != PURPLE_XFER_UNKNOWN); |
1437 | 1437 |
1438 type = purple_xfer_get_type(xfer); | 1438 type = purple_xfer_get_type(xfer); |
1439 | 1439 |
1440 purple_xfer_set_status(xfer, PURPLE_XFER_STATUS_STARTED); | 1440 purple_xfer_set_status(xfer, PURPLE_XFER_STATUS_STARTED); |
1441 | |
1442 /* | |
1443 * FIXME 3.0.0 -- there's too much broken code depending on fd == 0 | |
1444 * meaning "don't use a real fd" | |
1445 */ | |
1446 if (fd == 0) | |
1447 fd = -1; | |
1448 | 1441 |
1449 if (type == PURPLE_XFER_RECEIVE) { | 1442 if (type == PURPLE_XFER_RECEIVE) { |
1450 cond = PURPLE_INPUT_READ; | 1443 cond = PURPLE_INPUT_READ; |
1451 | 1444 |
1452 if (ip != NULL) { | 1445 if (ip != NULL) { |