mirror of
https://github.com/NickHu/sway
synced 2024-12-28 22:23:30 +01:00
Merge pull request #1183 from sleep-walker/master
explicitly ignore unused return value
This commit is contained in:
commit
382b678100
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue