# HG changeset patch # User Daniel Atallah # Date 1155827952 0 # Node ID fcae2cfe26ebd7276c3744d20451c7e2fba9bc8d # Parent b04e36dae7af324557d20e9d0effc90a2cbfd77a [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 diff -r b04e36dae7af -r fcae2cfe26eb src/sslconn.c --- 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; }