mirror of
https://github.com/libfuse/libfuse.git
synced 2024-11-23 04:04:31 +08:00
Use off_t instead of loff_t
Since we're already enforcing 64-bit off_t, using loff_t makes no difference. Also loff_t is Linux-only, which breaks compatibility for *BSD.
This commit is contained in:
parent
285465fbdb
commit
09e6583b54
@ -9,8 +9,6 @@
|
||||
|
||||
#define FUSE_USE_VERSION 30
|
||||
|
||||
#define _GNU_SOURCE /* for loff_t */
|
||||
|
||||
#include <fuse_config.h>
|
||||
#include <fuse_lowlevel.h>
|
||||
#include <stdio.h>
|
||||
@ -214,7 +212,7 @@ static void test_fs(char *mountpoint) {
|
||||
const size_t dsize = options.data_size * WRITE_SYSCALLS;
|
||||
int fd, rofd;
|
||||
pthread_t rofd_thread;
|
||||
loff_t off = 0;
|
||||
off_t off = 0;
|
||||
|
||||
buf = malloc(dsize);
|
||||
assert(buf != NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user