1*4882a593SmuzhiyunUse off_t instead of __off_t 2*4882a593Smuzhiyun 3*4882a593Smuzhiyun__off_t is an internal C library type, which shouldn't be used by 4*4882a593Smuzhiyunapplications. It is not defined by the musl C library, so use the 5*4882a593Smuzhiyunpublic off_t type instead. 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 8*4882a593Smuzhiyun 9*4882a593SmuzhiyunIndex: b/ftpfs.c 10*4882a593Smuzhiyun=================================================================== 11*4882a593Smuzhiyun--- a/ftpfs.c 12*4882a593Smuzhiyun+++ b/ftpfs.c 13*4882a593Smuzhiyun@@ -687,7 +687,7 @@ 14*4882a593Smuzhiyun return ftpfs_getattr(path, &sbuf); 15*4882a593Smuzhiyun } 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun-static __off_t test_size(const char* path) 18*4882a593Smuzhiyun+static off_t test_size(const char* path) 19*4882a593Smuzhiyun { 20*4882a593Smuzhiyun struct stat sbuf; 21*4882a593Smuzhiyun int err = ftpfs_getattr(path, &sbuf); 22*4882a593Smuzhiyun@@ -950,7 +950,7 @@ 23*4882a593Smuzhiyun 24*4882a593Smuzhiyun /* fix openoffice problem, truncating exactly to file length */ 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun- __off_t size = (long long int)test_size(path); 27*4882a593Smuzhiyun+ off_t size = (long long int)test_size(path); 28*4882a593Smuzhiyun DEBUG(1, "ftpfs_truncate: %s check filesize=%lld\n", path, (long long int)size); 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun if (offset == size) 31*4882a593Smuzhiyun@@ -978,7 +978,7 @@ 32*4882a593Smuzhiyun } 33*4882a593Smuzhiyun /* fix openoffice problem, truncating exactly to file length */ 34*4882a593Smuzhiyun 35*4882a593Smuzhiyun- __off_t size = test_size(path); 36*4882a593Smuzhiyun+ off_t size = test_size(path); 37*4882a593Smuzhiyun DEBUG(1, "ftpfs_ftruncate: %s check filesize=%lld\n", path, (long long int)size); 38*4882a593Smuzhiyun 39*4882a593Smuzhiyun if (offset == size) 40