1 Use off_t instead of __off_t
3 __off_t is an internal C library type, which shouldn't be used by
4 applications. It is not defined by the musl C library, so use the
5 public off_t type instead.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 ===================================================================
14 return ftpfs_getattr(path, &sbuf);
17 -static __off_t test_size(const char* path)
18 +static off_t test_size(const char* path)
21 int err = ftpfs_getattr(path, &sbuf);
24 /* fix openoffice problem, truncating exactly to file length */
26 - __off_t size = (long long int)test_size(path);
27 + off_t size = (long long int)test_size(path);
28 DEBUG(1, "ftpfs_truncate: %s check filesize=%lld\n", path, (long long int)size);
33 /* fix openoffice problem, truncating exactly to file length */
35 - __off_t size = test_size(path);
36 + off_t size = test_size(path);
37 DEBUG(1, "ftpfs_ftruncate: %s check filesize=%lld\n", path, (long long int)size);