changeset 14166:fcae2cfe26eb

[gaim-migrate @ 16816] I will apologize in advance for this ugliness - it is necessary because we have a "connect" macro to cause the wgaim_connect() wrapper function to be used. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Thu, 17 Aug 2006 15:19:12 +0000
parents b04e36dae7af
children 8160857cd958
files src/sslconn.c
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/sslconn.c	Thu Aug 17 14:07:20 2006 +0000
+++ b/src/sslconn.c	Thu Aug 17 15:19:12 2006 +0000
@@ -71,6 +71,7 @@
 {
 	GaimSslConnection *gsc;
 	GaimSslOps *ops;
+	void (*connect_func)(GaimSslConnection *gsc);
 
 	gsc = data;
 	gsc->connect_info = NULL;
@@ -87,7 +88,8 @@
 	gsc->fd = source;
 
 	ops = gaim_ssl_get_ops();
-	ops->connect(gsc);
+	connect_func = (ops->connect);
+	connect_func(gsc);
 }
 
 GaimSslConnection *
@@ -158,6 +160,7 @@
 {
 	GaimSslConnection *gsc;
 	GaimSslOps *ops;
+	void (*connect_func)(GaimSslConnection *gsc);
 
 	g_return_val_if_fail(fd != -1,                NULL);
 	g_return_val_if_fail(func != NULL,            NULL);
@@ -177,7 +180,8 @@
 	gsc->fd              = fd;
 
 	ops = gaim_ssl_get_ops();
-	ops->connect(gsc);
+	connect_func = ops->connect;
+	connect_func(gsc);
 
 	return (GaimSslConnection *)gsc;
 }