changeset 12802:26b31b4c43a2

[gaim-migrate @ 15149] Avoid confusion committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Tue, 10 Jan 2006 04:36:26 +0000
parents d24bc9737de8
children 050b29b7232a
files src/util.c
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/util.c	Tue Jan 10 03:30:37 2006 +0000
+++ b/src/util.c	Tue Jan 10 04:36:26 2006 +0000
@@ -3156,7 +3156,6 @@
 			   void (*cb)(gpointer, const char *, size_t),
 			   void *user_data)
 {
-	int sock;
 	GaimFetchUrlData *gfud;
 
 	g_return_if_fail(url != NULL);
@@ -3178,9 +3177,9 @@
 	gaim_url_parse(url, &gfud->website.address, &gfud->website.port,
 				   &gfud->website.page, &gfud->website.user, &gfud->website.passwd);
 
-	if ((sock = gaim_proxy_connect(NULL, gfud->website.address,
+	if (gaim_proxy_connect(NULL, gfud->website.address,
 								   gfud->website.port, url_fetched_cb,
-								   gfud)) < 0)
+								   gfud) != 0)
 	{
 		destroy_fetch_url_data(gfud);