Mercurial > pidgin.yaz
diff libpurple/protocols/msn/httpconn.c @ 32708:10e5000326a5
Convert code to use the purple_account accessor functions.
author | andrew.victor@mxit.com |
---|---|
date | Sat, 01 Oct 2011 21:04:35 +0000 |
parents | b6955681b7b3 |
children | 1a2840d2cd02 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/httpconn.c Sat Oct 01 18:21:43 2011 +0000 +++ b/libpurple/protocols/msn/httpconn.c Sat Oct 01 21:04:35 2011 +0000 @@ -285,8 +285,10 @@ httpconn = data; servconn = httpconn->servconn; - if (servconn->type == MSN_SERVCONN_NS) - servconn->session->account->gc->last_received = time(NULL); + if (servconn->type == MSN_SERVCONN_NS) { + PurpleConnection *gc = purple_account_get_connection(servconn->session); + gc->last_received = time(NULL); + } len = read(httpconn->fd, buf, sizeof(buf) - 1); if (len < 0 && errno == EAGAIN)