1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-12-25 17:19:46 +05:30

reverse-ramdisk.c: bytes_written: reduce #if scope

This commit is contained in:
Intel A80486DX2-66 2024-01-03 21:49:23 +03:00
parent 9059cf1056
commit 0355b33d84
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -191,9 +191,15 @@ int tf_write(int ID, size_t offset, void* src, size_t data_size) {
// Write the data to the file
#if IS_POSIX
ssize_t bytes_written = write(file, src, data_size);
ssize_t
#else
size_t bytes_written = fwrite(src, 1, data_size, file);
size_t
#endif
bytes_written =
#if IS_POSIX
write(file, src, data_size);
#else
fwrite(src, 1, data_size, file);
#endif
if (