From: Daniel Lezcano Date: Tue, 1 Jun 2010 10:24:17 +0000 (+0200) Subject: fix compilation warning X-Git-Tag: lxc-0.7.0~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5fad0874c3ff58afeb5c427a7ef1d211d3c5ce37;p=thirdparty%2Flxc.git fix compilation warning Fix compilation warning: lxc_console.c: In function ‘master_handler’: lxc_console.c:175: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc_console.c b/src/lxc/lxc_console.c index 35c6a97ef..5a1e45abd 100644 --- a/src/lxc/lxc_console.c +++ b/src/lxc/lxc_console.c @@ -172,7 +172,7 @@ static int master_handler(int fd, void *data, struct lxc_epoll_descr *descr) SYSERROR("failed to read"); return 1; } - write(*peer, buf, r); + r = write(*peer, buf, r); return 0; }