1
0
Fork 0

[osdep] suppress warning

This commit is contained in:
Witold Filipczyk 2022-06-25 16:15:12 +02:00
parent 3d8605cb4f
commit 5c550ff2a0
1 changed files with 2 additions and 2 deletions

View File

@ -820,7 +820,7 @@ bgt(struct tdata *t)
signal(SIGPIPE, SIG_IGN);
#endif
t->fn(t->data, t->h);
write(t->h, "x", 1);
(void)!write(t->h, "x", 1);
close(t->h);
free(t);
}
@ -854,7 +854,7 @@ start_thread(void (*fn)(void *, int), void *ptr, int l)
close(p[0]);
fn(ptr, p[1]);
write(p[1], "x", 1);
(void)!write(p[1], "x", 1);
close(p[1]);
/* We use _exit() here instead of exit(), see
* http://www.erlenstar.demon.co.uk/unix/faq_2.html#SEC6 for