summaryrefslogtreecommitdiff
path: root/src/plugins/xfer/xfer-network.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-09-22 16:16:41 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-09-22 16:16:41 +0200
commit893485ba5fcf791ceed99ab122e336402624b872 (patch)
treee395f6326eb4c166b78fc7aae180a3a7ba343558 /src/plugins/xfer/xfer-network.c
parent0602bc105b8f90b09e94bbbdfcb829841141d3ed (diff)
downloadweechat-893485ba5fcf791ceed99ab122e336402624b872.zip
core: remove compilation warnings about unused return values of functions
Diffstat (limited to 'src/plugins/xfer/xfer-network.c')
-rw-r--r--src/plugins/xfer/xfer-network.c4
1 files changed, 3 insertions, 1 deletions
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;
}
/*