[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 33/41] fatfs: Port to x86_64
From: |
Sergey Bugaev |
Subject: |
[PATCH 33/41] fatfs: Port to x86_64 |
Date: |
Tue, 9 May 2023 00:31:28 +0300 |
---
fatfs/dir.c | 6 +++---
fatfs/main.c | 2 +-
2 files changed, 4 insertions(+), 4 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)
{
diff --git a/fatfs/main.c b/fatfs/main.c
index 6b03b20e..5ece199b 100644
--- a/fatfs/main.c
+++ b/fatfs/main.c
@@ -110,7 +110,7 @@ struct argp *diskfs_runtime_argp = (struct argp *)
&runtime_argp;
/* Override the standard diskfs routine so we can add our own
output. */
error_t
-diskfs_append_args (char **argz, unsigned *argz_len)
+diskfs_append_args (char **argz, size_t *argz_len)
{
error_t err;
char buf[100];
--
2.40.1
- [PATCH 29/41] pflocal: Port to x86_64, (continued)
- [PATCH 29/41] pflocal: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 14/41] utils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 17/41] proc: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 16/41] auth: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 26/41] boot: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 20/41] elfcore: Add support for saving x86_64 registers, Sergey Bugaev, 2023/05/08
- [PATCH 22/41] sutils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 35/41] procfs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 41/41] Style tweaks, Sergey Bugaev, 2023/05/08
- [PATCH 34/41] ext2fs: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 33/41] fatfs: Port to x86_64,
Sergey Bugaev <=
- [PATCH 21/41] sutils: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 27/41] boot: Port to x64_64, Sergey Bugaev, 2023/05/08
- [PATCH 37/41] console-client: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 30/41] startup: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 15/41] utils: Avoid warnings about prototype mismatch, Sergey Bugaev, 2023/05/08
- [PATCH 18/41] proc: Fix use-after-realloc, Sergey Bugaev, 2023/05/08
- [PATCH 31/41] mach-defpager: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 38/41] trans: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 19/41] exec: Port to x86_64, Sergey Bugaev, 2023/05/08
- [PATCH 25/41] daemons: Port to x86_64, Sergey Bugaev, 2023/05/08