From 4c565f0b7c8134deccb3df0a1496ca03650c897b Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 13 Jan 2009 15:10:11 -0800 Subject: [PATCH] Fix bugs in leak checker. Oops. --- lib/leak-checker.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/leak-checker.c b/lib/leak-checker.c index defc1edb..bdff3247 100644 --- a/lib/leak-checker.c +++ b/lib/leak-checker.c @@ -143,7 +143,7 @@ leak_checker_usage(void) } static uintptr_t UNUSED -read_maps(void) +get_max_stack(void) { static const char file_name[] = "/proc/self/maps"; char line[1024]; @@ -176,7 +176,7 @@ read_maps(void) static void get_stack_limits(uintptr_t *lowp, uintptr_t *highp) { -#ifndef __x86__ +#ifndef __i386__ static bool warned = false; if (!warned) { warned = true; @@ -190,7 +190,7 @@ get_stack_limits(uintptr_t *lowp, uintptr_t *highp) if (!high) { high = get_max_stack(); } - asm("movl %%esp,%0" : "g" (*lowp)); + asm("movl %%esp,%0" : "=g" (*lowp)); *highp = high; #endif } -- 2.30.2