diff options
Diffstat (limited to 'examples/libsmbclient/teststatvfs.c')
-rw-r--r-- | examples/libsmbclient/teststatvfs.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/examples/libsmbclient/teststatvfs.c b/examples/libsmbclient/teststatvfs.c index 8812002d5c..b7e6b5159e 100644 --- a/examples/libsmbclient/teststatvfs.c +++ b/examples/libsmbclient/teststatvfs.c @@ -49,13 +49,20 @@ int main(int argc, char * argv[]) printf("\n"); printf("Block Size: %lu\n", statvfsbuf.f_bsize); printf("Fragment Size: %lu\n", statvfsbuf.f_frsize); - printf("Blocks: %llu\n", statvfsbuf.f_blocks); - printf("Free Blocks: %llu\n", statvfsbuf.f_bfree); - printf("Available Blocks: %llu\n", statvfsbuf.f_bavail); - printf("Files : %llu\n", statvfsbuf.f_files); - printf("Free Files: %llu\n", statvfsbuf.f_ffree); - printf("Available Files: %llu\n", statvfsbuf.f_favail); - printf("File System ID: %lu\n", statvfsbuf.f_fsid); + printf("Blocks: %llu\n", + (unsigned long long) statvfsbuf.f_blocks); + printf("Free Blocks: %llu\n", + (unsigned long long) statvfsbuf.f_bfree); + printf("Available Blocks: %llu\n", + (unsigned long long) statvfsbuf.f_bavail); + printf("Files : %llu\n", + (unsigned long long) statvfsbuf.f_files); + printf("Free Files: %llu\n", + (unsigned long long) statvfsbuf.f_ffree); + printf("Available Files: %llu\n", + (unsigned long long) statvfsbuf.f_favail); + printf("File System ID: %lu\n", + (unsigned long) statvfsbuf.f_fsid); printf("\n"); printf("Flags: 0x%lx\n", statvfsbuf.f_flag); |