sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 974be01e83a26b6c5989e2b45e20399f45b08826
parent 94ad169eb6c2806c0f9a119b2c726d0f16cb56b0
Author: Tomáš Čech <sleep_walker@gnu.org>
Date:   Wed, 19 Apr 2017 10:15:11 +0200

explicitly ignore unused return value

fixes issue#1182

Diffstat:
Msway/config.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sway/config.c b/sway/config.c @@ -940,8 +940,8 @@ static void invoke_swaybar(struct bar_config *bar) { if (!command) { const char msg[] = "Unable to allocate swaybar command string"; int len = sizeof(msg); - write(filedes[1], &len, sizeof(int)); - write(filedes[1], msg, len); + if (write(filedes[1], &len, sizeof(int))) {}; + if (write(filedes[1], msg, len)) {}; close(filedes[1]); _exit(EXIT_FAILURE); }