Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
32707:f75041cb3fec | 32708:10e5000326a5 |
---|---|
283 gboolean error = FALSE; | 283 gboolean error = FALSE; |
284 | 284 |
285 httpconn = data; | 285 httpconn = data; |
286 servconn = httpconn->servconn; | 286 servconn = httpconn->servconn; |
287 | 287 |
288 if (servconn->type == MSN_SERVCONN_NS) | 288 if (servconn->type == MSN_SERVCONN_NS) { |
289 servconn->session->account->gc->last_received = time(NULL); | 289 PurpleConnection *gc = purple_account_get_connection(servconn->session); |
290 gc->last_received = time(NULL); | |
291 } | |
290 | 292 |
291 len = read(httpconn->fd, buf, sizeof(buf) - 1); | 293 len = read(httpconn->fd, buf, sizeof(buf) - 1); |
292 if (len < 0 && errno == EAGAIN) | 294 if (len < 0 && errno == EAGAIN) |
293 return; | 295 return; |
294 if (len <= 0) { | 296 if (len <= 0) { |