]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
fix compilation warning
authorDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 1 Jun 2010 10:24:17 +0000 (12:24 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 1 Jun 2010 10:24:17 +0000 (12:24 +0200)
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 <dlezcano@fr.ibm.com>
src/lxc/lxc_console.c

index 35c6a97efed8402af9cafecc1f359fa2cdcaf019..5a1e45abdf8a89f925a3bfdb289c161b17e53981 100644 (file)
@@ -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;
 }