diff libpurple/protocols/msn/slplink.c @ 27874:6adbdd4b2963

ft: Fix a bunch of uses of 0 as an 'invalid' fd. purple_xfer_start still accepts it to mean "Don't set up any watches" to maintain backward compatibility with third-party prpls, since old versions of libpurple won't work with -1.
author Paul Aurich <paul@darkrain42.org>
date Tue, 11 Aug 2009 02:41:09 +0000
parents 58f29c0286fe
children de7f6fd04298
line wrap: on
line diff
--- a/libpurple/protocols/msn/slplink.c	Mon Aug 10 23:24:39 2009 +0000
+++ b/libpurple/protocols/msn/slplink.c	Tue Aug 11 02:41:09 2009 +0000
@@ -456,7 +456,7 @@
 	slpmsg->info = "SLP FILE";
 
 	xfer = (PurpleXfer *)slpcall->xfer;
-	purple_xfer_start(slpcall->xfer, 0, NULL, 0);
+	purple_xfer_start(slpcall->xfer, -1, NULL, 0);
 	slpmsg->fp = xfer->dest_fp;
 	if (g_stat(purple_xfer_get_local_filename(xfer), &st) == 0)
 		slpmsg->size = st.st_size;
@@ -537,7 +537,7 @@
 					if (xfer != NULL)
 					{
 						purple_xfer_ref(xfer);
-						purple_xfer_start(xfer,	0, NULL, 0);
+						purple_xfer_start(xfer,	-1, NULL, 0);
 
 						if (xfer->data == NULL) {
 							purple_xfer_unref(xfer);