Mercurial > pidgin.yaz
changeset 14167:8160857cd958
[gaim-migrate @ 16817]
nosnilmot pointed out that I'm an idiot and this is a far less ugly way to achieve the same goal. (I swear I tried it first, but must have not actually saved the file when I tested it).
committer: Tailor Script <tailor@pidgin.im>
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Thu, 17 Aug 2006 15:46:58 +0000 |
parents | fcae2cfe26eb |
children | fa4fc7e5d93d |
files | src/sslconn.c |
diffstat | 1 files changed, 2 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sslconn.c Thu Aug 17 15:19:12 2006 +0000 +++ b/src/sslconn.c Thu Aug 17 15:46:58 2006 +0000 @@ -71,7 +71,6 @@ { GaimSslConnection *gsc; GaimSslOps *ops; - void (*connect_func)(GaimSslConnection *gsc); gsc = data; gsc->connect_info = NULL; @@ -88,8 +87,7 @@ gsc->fd = source; ops = gaim_ssl_get_ops(); - connect_func = (ops->connect); - connect_func(gsc); + (ops->connect)(gsc); } GaimSslConnection * @@ -160,7 +158,6 @@ { 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); @@ -180,8 +177,7 @@ gsc->fd = fd; ops = gaim_ssl_get_ops(); - connect_func = ops->connect; - connect_func(gsc); + (ops->connect)(gsc); return (GaimSslConnection *)gsc; }