diff options
author | Damien Zammit <damien@zamaudio.com> | 2020-04-10 22:17:31 +1000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-04-12 23:20:28 +0200 |
commit | 105e1d48e0cfda76fe560d30ef54b16cfb80e828 (patch) | |
tree | 678abb75caf36ee7410bf59f7a46434464d726d1 /pci-arbiter | |
parent | d571e6c748b4db6c73f4036a2951a0f6cbe55138 (diff) | |
download | hurd-105e1d48e0cfda76fe560d30ef54b16cfb80e828.tar.gz hurd-105e1d48e0cfda76fe560d30ef54b16cfb80e828.tar.bz2 hurd-105e1d48e0cfda76fe560d30ef54b16cfb80e828.zip |
pci-ops.c: Use compatible pointers
Diffstat (limited to 'pci-arbiter')
-rw-r--r-- | pci-arbiter/pci-ops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pci-arbiter/pci-ops.c b/pci-arbiter/pci-ops.c index 19aee71d..3346e55a 100644 --- a/pci-arbiter/pci-ops.c +++ b/pci-arbiter/pci-ops.c @@ -85,7 +85,7 @@ S_pci_conf_read (struct protid * master, int reg, char **data, error_t err; pthread_mutex_t *lock; struct pcifs_dirent *e; - size_t actual_len; + pciaddr_t actual_len; if (!master) return EOPNOTSUPP; @@ -118,7 +118,7 @@ S_pci_conf_read (struct protid * master, int reg, char **data, if (!err) { - *datalen = actual_len; + *datalen = (size_t)actual_len; /* Update atime */ UPDATE_TIMES (e, TOUCH_ATIME); } @@ -134,7 +134,7 @@ S_pci_conf_write (struct protid * master, int reg, char *data, size_t datalen, error_t err; pthread_mutex_t *lock; struct pcifs_dirent *e; - size_t actual_len; + pciaddr_t actual_len; if (!master) return EOPNOTSUPP; @@ -156,7 +156,7 @@ S_pci_conf_write (struct protid * master, int reg, char *data, size_t datalen, if (!err) { - *amount = actual_len; + *amount = (size_t)actual_len; /* Update mtime and ctime */ UPDATE_TIMES (e, TOUCH_MTIME | TOUCH_CTIME); } |