From: Lennart Poettering Date: Tue, 12 Dec 2017 22:24:44 +0000 (+0100) Subject: sd-bus: cast some syscall invocations explicitly to (void) X-Git-Tag: v237~139^2~43 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ae22ffb723f5b15a7cf5fb71895a202b29d4210;p=platform%2Fupstream%2Fsystemd.git sd-bus: cast some syscall invocations explicitly to (void) Let's clarify that we knowingly ignore the return values. --- diff --git a/src/libsystemd/sd-bus/bus-socket.c b/src/libsystemd/sd-bus/bus-socket.c index 0a1d36a..5034d51 100644 --- a/src/libsystemd/sd-bus/bus-socket.c +++ b/src/libsystemd/sd-bus/bus-socket.c @@ -592,8 +592,8 @@ void bus_socket_setup(sd_bus *b) { assert(b); /* Increase the buffers to 8 MB */ - fd_inc_rcvbuf(b->input_fd, SNDBUF_SIZE); - fd_inc_sndbuf(b->output_fd, SNDBUF_SIZE); + (void) fd_inc_rcvbuf(b->input_fd, SNDBUF_SIZE); + (void) fd_inc_sndbuf(b->output_fd, SNDBUF_SIZE); b->message_version = 1; b->message_endian = 0; @@ -742,10 +742,10 @@ int bus_socket_exec(sd_bus *b) { if (!IN_SET(s[1], STDIN_FILENO, STDOUT_FILENO)) safe_close(s[1]); - fd_cloexec(STDIN_FILENO, false); - fd_cloexec(STDOUT_FILENO, false); - fd_nonblock(STDIN_FILENO, false); - fd_nonblock(STDOUT_FILENO, false); + (void) fd_cloexec(STDIN_FILENO, false); + (void) fd_cloexec(STDOUT_FILENO, false); + (void) fd_nonblock(STDIN_FILENO, false); + (void) fd_nonblock(STDOUT_FILENO, false); if (b->exec_argv) execvp(b->exec_path, b->exec_argv);