1.1 --- a/libfsclient/include/fsclient/file.h Sun Apr 18 00:24:18 2021 +0200
1.2 +++ b/libfsclient/include/fsclient/file.h Sun Apr 18 00:25:46 2021 +0200
1.3 @@ -19,6 +19,8 @@
1.4 * Boston, MA 02110-1301, USA
1.5 */
1.6
1.7 +#pragma once
1.8 +
1.9 #include <l4/sys/types.h>
1.10
1.11 #include <systypes/base.h>
1.12 @@ -94,8 +96,8 @@
1.13
1.14 /* Client data transfer functions. */
1.15
1.16 -void file_data_read(file_t *file, char *buf, size_t to_transfer);
1.17 -void file_data_write(file_t *file, char *buf, size_t to_transfer);
1.18 +void file_data_read(file_t *file, char *buf, offset_t to_transfer);
1.19 +void file_data_write(file_t *file, char *buf, offset_t to_transfer);
1.20
1.21
1.22
2.1 --- a/libfsclient/lib/src/file.cc Sun Apr 18 00:24:18 2021 +0200
2.2 +++ b/libfsclient/lib/src/file.cc Sun Apr 18 00:25:46 2021 +0200
2.3 @@ -331,7 +331,7 @@
2.4 /* Copy data to the given buffer from the current data position, updating the
2.5 position. */
2.6
2.7 -void file_data_read(file_t *file, char *buf, size_t to_transfer)
2.8 +void file_data_read(file_t *file, char *buf, offset_t to_transfer)
2.9 {
2.10 memcpy(buf, file_data_current(file), to_transfer);
2.11
2.12 @@ -343,7 +343,7 @@
2.13 /* Copy data from the given buffer to the current data position, updating the
2.14 position and the extent of populated data if this was exceeded. */
2.15
2.16 -void file_data_write(file_t *file, char *buf, size_t to_transfer)
2.17 +void file_data_write(file_t *file, char *buf, offset_t to_transfer)
2.18 {
2.19 memcpy(file_data_current(file), buf, to_transfer);
2.20