3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-22 23:09:34 +01:00

storage: Use L_TFR instead of TFR

This commit is contained in:
Denis Kenzior 2019-05-28 14:06:22 -05:00
parent 57748347b0
commit d74fcfd25c

View File

@ -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;