# HG changeset patch # User Richard Laager # Date 1200259850 0 # Node ID 11eb52cb75253bef40967668fc0588ff7dc4598e # Parent 50b20401ce4528cb257e3940f91e70aff18ff3a5 Part of a large patch from o_sukhodolsky to fix some build warnings. Refs #1344 diff -r 50b20401ce45 -r 11eb52cb7525 libpurple/protocols/irc/dcc_send.c --- a/libpurple/protocols/irc/dcc_send.c Sun Jan 13 21:24:59 2008 +0000 +++ b/libpurple/protocols/irc/dcc_send.c Sun Jan 13 21:30:50 2008 +0000 @@ -51,9 +51,14 @@ */ static void irc_dccsend_recv_ack(PurpleXfer *xfer, const guchar *data, size_t size) { unsigned long l; + size_t result; l = htonl(xfer->bytes_sent); - write(xfer->fd, &l, sizeof(l)); + result = write(xfer->fd, &l, sizeof(l)); + if (result != sizeof(l)) { + purple_debug_error("irc", "unable to send acknowledgement: %s\n", strerror(errno)); + /* TODO: We should probably close the connection here or something. */ + } } static void irc_dccsend_recv_init(PurpleXfer *xfer) {