comparison libpurple/protocols/msn/soap.c @ 24531:faff4870f99d

Formatting change: Split these if statements on to two lines
author Mark Doliner <mark@kingant.net>
date Tue, 25 Nov 2008 02:18:00 +0000
parents 113e95371d3c
children d70eb6304eae
comparison
equal deleted inserted replaced
24530:113e95371d3c 24531:faff4870f99d
531 gboolean initial) 531 gboolean initial)
532 { 532 {
533 MsnSoapConnection *conn = data; 533 MsnSoapConnection *conn = data;
534 int written; 534 int written;
535 535
536 if (cond != PURPLE_INPUT_WRITE) return TRUE; 536 if (cond != PURPLE_INPUT_WRITE)
537 return TRUE;
537 538
538 written = purple_ssl_write(conn->ssl, conn->buf->str + conn->handled_len, 539 written = purple_ssl_write(conn->ssl, conn->buf->str + conn->handled_len,
539 conn->buf->len - conn->handled_len); 540 conn->buf->len - conn->handled_len);
540 541
541 if (written < 0 && errno == EAGAIN) 542 if (written < 0 && errno == EAGAIN)
542 return TRUE; 543 return TRUE;
543 else if (written <= 0) { 544 else if (written <= 0) {
544 purple_ssl_close(conn->ssl); 545 purple_ssl_close(conn->ssl);
545 conn->ssl = NULL; 546 conn->ssl = NULL;
546 if (!initial) msn_soap_connection_handle_next(conn); 547 if (!initial)
548 msn_soap_connection_handle_next(conn);
547 return FALSE; 549 return FALSE;
548 } 550 }
549 551
550 conn->handled_len += written; 552 conn->handled_len += written;
551 553