diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-11 21:40:50 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-11 21:40:50 +0000 |
commit | 6814a9338d1211625964ca3a702cd38e8708bc6f (patch) | |
tree | ac8e08525b76456e43d04cdac815878057a8461e /tmpfs/dir.c | |
parent | 0393dca401038f070914450f27574baba9f7afe1 (diff) |
2002-06-08 Roland McGrath <roland@frob.com>
* node.c (diskfs_cached_lookup): Use ino_t for argument.
* node.c (diskfs_alloc_node): Case to uintptr_t before ino_t.
(diskfs_cached_lookup): Likewise, and vice versa.
* dir.c (diskfs_get_directs, diskfs_lookup_hard): Likewise.
Diffstat (limited to 'tmpfs/dir.c')
-rw-r--r-- | tmpfs/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tmpfs/dir.c b/tmpfs/dir.c index 5b63dbd5..1a93cdda 100644 --- a/tmpfs/dir.c +++ b/tmpfs/dir.c @@ -95,7 +95,7 @@ diskfs_get_directs (struct node *dp, int entry, int n, entp->d_fileno = 2; } else - entp->d_fileno = (ino_t) dp->dn->u.dir.dotdot; + entp->d_fileno = (ino_t) (uintptr_t) dp->dn->u.dir.dotdot; entp->d_type = DT_DIR; entp->d_namlen = 2; entp->d_name[0] = '.'; @@ -123,7 +123,7 @@ diskfs_get_directs (struct node *dp, int entry, int n, size_t rlen = (offsetof (struct dirent, d_name[1]) + d->namelen + 7) & ~7; if (rlen + (char *) entp - *data > bufsiz || (n >= 0 && i > n)) break; - entp->d_fileno = (ino_t) d->dn; + entp->d_fileno = (ino_t) (uintptr_t) d->dn; entp->d_type = DT_UNKNOWN; entp->d_namlen = d->namelen; memcpy (entp->d_name, d->name, d->namelen + 1); @@ -220,7 +220,7 @@ diskfs_lookup_hard (struct node *dp, ds->prevp = prevp; if (np) - return diskfs_cached_lookup ((ino_t) d->dn, np); + return diskfs_cached_lookup ((ino_t) (uintptr_t) d->dn, np); else return 0; } |