diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-05-09 00:31:28 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-05-10 02:44:35 +0200 |
commit | 67a9890063b9c5327ee1b89f857826235c9f63dc (patch) | |
tree | dddb02ab74f4d12634f542e7d37bc00f1483c4f7 /fatfs/dir.c | |
parent | 3e0a0154b415d611590f5525d9ae74b3ebf7b782 (diff) | |
download | hurd-67a9890063b9c5327ee1b89f857826235c9f63dc.tar.gz hurd-67a9890063b9c5327ee1b89f857826235c9f63dc.tar.bz2 hurd-67a9890063b9c5327ee1b89f857826235c9f63dc.zip |
fatfs: Port to x86_64
Message-Id: <20230508213136.608575-34-bugaevc@gmail.com>
Diffstat (limited to 'fatfs/dir.c')
-rw-r--r-- | fatfs/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fatfs/dir.c b/fatfs/dir.c index 2679a0ce..71974642 100644 --- a/fatfs/dir.c +++ b/fatfs/dir.c @@ -659,7 +659,7 @@ diskfs_direnter_hard (struct node *dp, const char *name, struct node *np, vi_key_t entry_key; entry_key.dir_inode = dp->cache_id; - entry_key.dir_offset = ((int) ds->entry) - ((int) ds->mapbuf); + entry_key.dir_offset = (uintptr_t) ds->entry - (uintptr_t) ds->mapbuf; /* Set the key for this inode now because it wasn't know when the inode was initialized. */ @@ -727,7 +727,7 @@ diskfs_dirrewrite_hard (struct node *dp, struct node *np, struct dirstat *ds) /* We need the inode and vinode of the old node. */ entry_key.dir_inode = dp->cache_id; - entry_key.dir_offset = ((int) ds->entry) - ((int) ds->mapbuf); + entry_key.dir_offset = (uintptr_t) ds->entry - (uintptr_t) ds->mapbuf; err = vi_rlookup (entry_key, &inode, &vinode, 0); assert_backtrace (err != EINVAL); if (err) @@ -832,7 +832,7 @@ diskfs_get_directs (struct node *dp, int entry, int nentries, char **data, - u_int *datacnt, + size_t *datacnt, vm_size_t bufsiz, int *amt) { |