diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-04-19 09:17:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-19 09:17:00 -0400 |
commit | 382b67810046bc14518451a9ed1341984839e294 (patch) | |
tree | 5cafe7fa61d0957068ad78ffe5cdaaa03cc0cd5e | |
parent | 94ad169eb6c2806c0f9a119b2c726d0f16cb56b0 (diff) | |
parent | 974be01e83a26b6c5989e2b45e20399f45b08826 (diff) |
Merge pull request #1183 from sleep-walker/master
explicitly ignore unused return value
-rw-r--r-- | sway/config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/config.c b/sway/config.c index ae09d4f8..0014b33a 100644 --- 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); } |