aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 19:34:32 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 19:34:32 +0000
commiteeeac3f3e3398124a0f2a118358a91289a30b8e0 (patch)
treef21b6a1fa7ff699df4af623919c3c361d7b82374
parent27524dc3600774e8c1a5cf54a4c41c6e78c8d535 (diff)
removed warning
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3607 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--linux-user/syscall.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 402fa06aea..6e9052af8c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -2319,7 +2319,7 @@ static abi_long write_ldt(CPUX86State *env,
if (!ldt_table)
return -TARGET_ENOMEM;
memset(ldt_table, 0, TARGET_LDT_ENTRIES * TARGET_LDT_ENTRY_SIZE);
- env->ldt.base = h2g(ldt_table);
+ env->ldt.base = h2g((unsigned long)ldt_table);
env->ldt.limit = 0xffff;
}
@@ -4268,7 +4268,6 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
case TARGET_NR_getdents:
#if TARGET_ABI_BITS != 32
goto unimplemented;
-#warning not supported
#elif TARGET_ABI_BITS == 32 && HOST_LONG_BITS == 64
{
struct target_dirent *target_dirp;