From 893485ba5fcf791ceed99ab122e336402624b872 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Thu, 22 Sep 2011 16:16:41 +0200 Subject: core: remove compilation warnings about unused return values of functions --- src/plugins/xfer/xfer-network.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/plugins/xfer/xfer-network.c') diff --git a/src/plugins/xfer/xfer-network.c b/src/plugins/xfer/xfer-network.c index 88443f76c..f588aa022 100644 --- a/src/plugins/xfer/xfer-network.c +++ b/src/plugins/xfer/xfer-network.c @@ -76,10 +76,12 @@ void xfer_network_write_pipe (struct t_xfer *xfer, int status, int error) { char buffer[1 + 1 + 32 + 1]; /* status + error + pos + \0 */ + int num_written; snprintf (buffer, sizeof (buffer), "%c%c%032llu", status + '0', error + '0', xfer->pos); - write (xfer->child_write, buffer, sizeof (buffer)); + num_written = write (xfer->child_write, buffer, sizeof (buffer)); + (void) num_written; } /* -- cgit v1.2.3