diff options
author | Chia-I Wu <[email protected]> | 2010-09-30 17:09:59 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-09-30 17:09:59 +0800 |
commit | ebeb4a7e8af9f59ce8f45f78654b611bb546979d (patch) | |
tree | 5f6c13849b2867460f7704c4a2020e787bf45d43 /src | |
parent | d63b2622f1c47d6f82fe96c9f1b749d908883a23 (diff) |
mapi: Fix compiler warnings.
Do not use "void *" in arithmetics.
Diffstat (limited to 'src')
-rw-r--r-- | src/mapi/mapi/entry_x86-64_tls.h | 2 | ||||
-rw-r--r-- | src/mapi/mapi/entry_x86_tls.h | 2 | ||||
-rw-r--r-- | src/mapi/mapi/entry_x86_tsd.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/mapi/mapi/entry_x86-64_tls.h b/src/mapi/mapi/entry_x86-64_tls.h index 0f6e8125e84..2fbe73b5b32 100644 --- a/src/mapi/mapi/entry_x86-64_tls.h +++ b/src/mapi/mapi/entry_x86-64_tls.h @@ -61,7 +61,7 @@ entry_patch_public(void) void entry_patch(mapi_func entry, int slot) { - void *code = (void *) entry; + char *code = (char *) entry; *((unsigned int *) (code + 12)) = slot * sizeof(mapi_func); } diff --git a/src/mapi/mapi/entry_x86_tls.h b/src/mapi/mapi/entry_x86_tls.h index ff2b9575f67..d4f7d98cf12 100644 --- a/src/mapi/mapi/entry_x86_tls.h +++ b/src/mapi/mapi/entry_x86_tls.h @@ -91,7 +91,7 @@ entry_patch_public(void) void entry_patch(mapi_func entry, int slot) { - void *code = (void *) entry; + char *code = (char *) entry; *((unsigned long *) (code + 8)) = slot * sizeof(mapi_func); } diff --git a/src/mapi/mapi/entry_x86_tsd.h b/src/mapi/mapi/entry_x86_tsd.h index fbf4ec54971..f37c7473a6f 100644 --- a/src/mapi/mapi/entry_x86_tsd.h +++ b/src/mapi/mapi/entry_x86_tsd.h @@ -63,7 +63,7 @@ entry_patch_public(void) void entry_patch(mapi_func entry, int slot) { - void *code = (void *) entry; + char *code = (char *) entry; *((unsigned long *) (code + 11)) = slot * sizeof(mapi_func); *((unsigned long *) (code + 22)) = slot * sizeof(mapi_func); |