Mercurial > pidgin
diff libfaim/aim_logoff.c @ 237:6ced2f1c8b24
[gaim-migrate @ 247]
How cool is this, libfaim is making a comeback. I completely redid everything,
as was necessary because of the updates to libfaim since gaim 0.9.7. You can
sign on and send/recv IMs, but there's a bad lag between display updates that
I haven't figured out how to fix yet.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sat, 20 May 2000 00:30:53 +0000 |
parents | 68b230f8da5f |
children | 0f14e6d8a51b |
line wrap: on
line diff
--- a/libfaim/aim_logoff.c Thu May 18 18:20:18 2000 +0000 +++ b/libfaim/aim_logoff.c Sat May 20 00:30:53 2000 +0000 @@ -4,7 +4,7 @@ * */ -#include "aim.h" +#include <aim.h> /* * aim_logoff() @@ -12,16 +12,16 @@ * Closes -ALL- open connections. * */ -int aim_logoff(void) +int aim_logoff(struct aim_session_t *sess) { int i = AIM_CONN_MAX-1; while (i > -1) { - if (aim_conns[i].fd>-1) - aim_conn_close(&(aim_conns[i])); + if (sess->conns[i].fd>-1) + aim_conn_close(&(sess->conns[i])); i--; } - aim_connrst(); /* in case we want to connect again */ + aim_connrst(sess); /* in case we want to connect again */ return 0;