mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
Explicit ignore result of read/write in oom wrapper
This commit is contained in:
parent
b281f6627a
commit
2a433cb00d
1 changed files with 2 additions and 2 deletions
|
|
@ -424,8 +424,8 @@ void addparentstats(struct dir *d, int64_t size, int64_t asize, uint64_t mtime,
|
|||
char buf[128];\
|
||||
while((ptr = f) == NULL) {\
|
||||
close_nc();\
|
||||
write(2, oom_msg, sizeof(oom_msg));\
|
||||
read(0, buf, sizeof(buf));\
|
||||
(void) !write(2, oom_msg, sizeof(oom_msg));\
|
||||
(void) !read(0, buf, sizeof(buf));\
|
||||
}\
|
||||
return ptr;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue