mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-22 14:49:24 +01:00
storage: Use L_TFR instead of TFR
This commit is contained in:
parent
57748347b0
commit
d74fcfd25c
@ -133,12 +133,12 @@ ssize_t write_file(const void *buffer, size_t len,
|
|||||||
if (create_dirs(path) != 0)
|
if (create_dirs(path) != 0)
|
||||||
goto error_create_dirs;
|
goto error_create_dirs;
|
||||||
|
|
||||||
fd = TFR(mkostemps(tmp_path, 4, O_CLOEXEC));
|
fd = L_TFR(mkostemps(tmp_path, 4, O_CLOEXEC));
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
goto error_mkostemps;
|
goto error_mkostemps;
|
||||||
|
|
||||||
r = TFR(write(fd, buffer, len));
|
r = L_TFR(write(fd, buffer, len));
|
||||||
TFR(close(fd));
|
L_TFR(close(fd));
|
||||||
|
|
||||||
if (r != (ssize_t) len) {
|
if (r != (ssize_t) len) {
|
||||||
r = -1;
|
r = -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user