summaryrefslogtreecommitdiffstats
path: root/debuggerd
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-02-05 17:50:35 -0800
committerElliott Hughes <enh@google.com>2014-02-05 18:02:11 -0800
commit5d9fe779c8ec2705865a23061834ad8cdbee5b82 (patch)
tree92b5a9331b64f97c3201fa0798f57daa10d6fd17 /debuggerd
parenteaba2bedf529eeb21351c8bf6365107cb6a4e8b6 (diff)
downloadsystem_core-5d9fe779c8ec2705865a23061834ad8cdbee5b82.zip
system_core-5d9fe779c8ec2705865a23061834ad8cdbee5b82.tar.gz
system_core-5d9fe779c8ec2705865a23061834ad8cdbee5b82.tar.bz2
system/core LP64 cleanup.
Fixes -Wint-to-pointer and -Wpointer-to-int warnings, plus various -Wformat warnings. Change-Id: I6c5eea6b4273d82d28b8e5d2925f3e5457511b17
Diffstat (limited to 'debuggerd')
-rw-r--r--debuggerd/crasher.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/debuggerd/crasher.c b/debuggerd/crasher.c
index 0033948..5a2bc3c 100644
--- a/debuggerd/crasher.c
+++ b/debuggerd/crasher.c
@@ -57,13 +57,13 @@ static void test_call1()
static void *noisy(void *x)
{
- char c = (unsigned) x;
+ char c = (uintptr_t) x;
for(;;) {
usleep(250*1000);
write(2, &c, 1);
if(c == 'C') *((unsigned*) 0) = 42;
}
- return 0;
+ return NULL;
}
static int ctest()
@@ -81,7 +81,7 @@ static int ctest()
static void* thread_callback(void* raw_arg)
{
- return (void*) do_action((const char*) raw_arg);
+ return (void*) (uintptr_t) do_action((const char*) raw_arg);
}
static int do_action_on_thread(const char* arg)
@@ -90,7 +90,7 @@ static int do_action_on_thread(const char* arg)
pthread_create(&t, NULL, thread_callback, (void*) arg);
void* result = NULL;
pthread_join(t, &result);
- return (int) result;
+ return (int) (uintptr_t) result;
}
__attribute__((noinline)) static int crash3(int a) {