Correct some potential 32bit/64bit issues.

This commit is contained in:
Godzil 2019-07-24 15:42:37 +01:00
parent 75a05048a4
commit 1cf7fd077c
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ typedef struct {
pid_t pid; pid_t pid;
uid_t uid; uid_t uid;
gid_t gid; gid_t gid;
unsigned int flags; /* flags from file struct */ unsigned long flags; /* flags from file struct */
void *device_info; /* device info */ void *device_info; /* device info */
void *private_info; /* file info */ void *private_info; /* file info */
@ -106,8 +106,8 @@ typedef struct {
* union but it just makes things too complex and doesn't save all * union but it just makes things too complex and doesn't save all
* that much memory anyway */ * that much memory anyway */
ssize_t retval; ssize_t retval;
size_t length; unsigned long length;
loff_t offset; unsigned long offset;
unsigned int cmd; /* ioctl cmd, poll_diff cached_state */ unsigned int cmd; /* ioctl cmd, poll_diff cached_state */
union { union {

View File

@ -1620,7 +1620,7 @@ struct fusd_mmap_instance {
fusd_dev_t *fusd_dev; fusd_dev_t *fusd_dev;
fusd_file_t *fusd_file; fusd_file_t *fusd_file;
unsigned long addr; unsigned long addr;
int size; unsigned long size;
atomic_t refcount; atomic_t refcount;
}; };