diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 23:11:36 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-11 23:11:36 +0000 |
commit | 8582a53a34b2d3fe811d29703eed7519efdf8f2e (patch) | |
tree | 7586c6bc12def36f696236afa5288cd29288df6b | |
parent | f8b0aa25599782eef91edc00ebf620bd14db720c (diff) | |
download | qemu-8582a53a34b2d3fe811d29703eed7519efdf8f2e.zip qemu-8582a53a34b2d3fe811d29703eed7519efdf8f2e.tar.gz qemu-8582a53a34b2d3fe811d29703eed7519efdf8f2e.tar.bz2 |
64 bit cast for dirent64
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3625 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 6e9052a..6c8f689 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4360,8 +4360,8 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, if (reclen > len) break; de->d_reclen = tswap16(reclen); - tswap64s(&de->d_ino); - tswap64s(&de->d_off); + tswap64s((uint64_t *)&de->d_ino); + tswap64s((uint64_t *)&de->d_off); de = (struct dirent64 *)((char *)de + reclen); len -= reclen; } |