comparison libpurple/protocols/msn/servconn.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 230caecf5435
children 50cd80d3554e
comparison
equal deleted inserted replaced
32707:f75041cb3fec 32708:10e5000326a5
419 char buf[MSN_BUF_LEN]; 419 char buf[MSN_BUF_LEN];
420 gssize len; 420 gssize len;
421 421
422 servconn = data; 422 servconn = data;
423 423
424 if (servconn->type == MSN_SERVCONN_NS) 424 if (servconn->type == MSN_SERVCONN_NS) {
425 servconn->session->account->gc->last_received = time(NULL); 425 PurpleConnection *gc = purple_account_get_connection(servconn->session->account);
426 gc->last_received = time(NULL);
427 }
426 428
427 len = read(servconn->fd, buf, sizeof(buf) - 1); 429 len = read(servconn->fd, buf, sizeof(buf) - 1);
428 if (len < 0 && errno == EAGAIN) 430 if (len < 0 && errno == EAGAIN)
429 return; 431 return;
430 if (len <= 0) { 432 if (len <= 0) {