diff options
author | ivmai <ivmai> | 2009-10-16 06:41:03 +0000 |
---|---|---|
committer | Ivan Maidanski <ivmai@mail.ru> | 2011-07-26 21:06:50 +0400 |
commit | 454d418dec1eda78f7dedfebeec978a87d6ff773 (patch) | |
tree | de84b0e3c74c832a68ed282cd57d615e9c75ac7e /os_dep.c | |
parent | d41c7ebc39446fea84ab9690f888559a384cba0d (diff) | |
download | bdwgc-454d418dec1eda78f7dedfebeec978a87d6ff773.tar.gz |
2009-10-16 Ivan Maidanski <ivmai@mail.ru>
* alloc.c (GC_finish_collection): Replace getenv() with GETENV().
* dyn_load.c (GC_init_dyld): Ditto.
* os_dep.c (GC_print_callers): Ditto.
* dyn_load.c (GC_dyld_name_for_hdr): Cast _dyld_get_image_name()
result (since it's always of "struct mach_header" type).
* dyn_load.c (GC_init_dyld): Cast GC_dyld_image_add and
GC_dyld_image_remove (to always have the first argument of
"struct mach_header" pointer type).
Diffstat (limited to 'os_dep.c')
-rw-r--r-- | os_dep.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -4273,7 +4273,7 @@ void GC_print_callers (struct callinfo info[NFRAMES]) /* isn't time critical. */ sprintf(cmd_buf, "/usr/bin/addr2line -f -e %s 0x%lx", exe_name, (unsigned long)info[i].ci_pc); - old_preload = getenv ("LD_PRELOAD"); + old_preload = GETENV("LD_PRELOAD"); if (0 != old_preload) { if (strlen (old_preload) >= PRELOAD_SZ) { will_fail = TRUE; |