Commit 5fad0874 by Daniel Lezcano

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: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent 0e391e57
...@@ -172,7 +172,7 @@ static int master_handler(int fd, void *data, struct lxc_epoll_descr *descr) ...@@ -172,7 +172,7 @@ static int master_handler(int fd, void *data, struct lxc_epoll_descr *descr)
SYSERROR("failed to read"); SYSERROR("failed to read");
return 1; return 1;
} }
write(*peer, buf, r); r = write(*peer, buf, r);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment