summaryrefslogtreecommitdiff
path: root/dyn_load.c
diff options
context:
space:
mode:
authorivmai <ivmai>2009-09-25 09:13:13 +0200
committerIvan Maidanski <ivmai@mail.ru>2011-07-26 19:06:47 +0200
commit0dbf78a04c14c7a6cfb3302f9faa4b6bcaa44b35 (patch)
treecece4c4efe12ab7f595c27104693a6032517aba2 /dyn_load.c
parentba266fac91ce5c645b7b7345f1729e31e0792955 (diff)
2009-09-25 Ivan Maidanski <ivmai@mail.ru>
* checksums.c (GC_checksum, GC_update_check_page): Remove "register" keyword in local variable declarations (for the code used only for debugging or which is not time-critical). * dbg_mlc.c (GC_has_other_debug_info, GC_store_debug_info, GC_store_debug_info_inner, GC_check_annotated_obj, GC_print_obj, GC_print_smashed_obj, GC_debug_end_stubborn_change, GC_debug_invoke_finalizer): Ditto. * dyn_load.c (GC_register_dynamic_libraries): Ditto. * mallocx.c (GC_realloc): Ditto. * mark_rts.c (GC_print_static_roots, GC_is_static_root, GC_clear_roots): Ditto. * misc.c (GC_write): Ditto. * os_dep.c (GC_print_callers): Ditto. * dyn_load.c (GC_register_dynamic_libraries): Rename "i" local variable to "j" for the nested loop (just not to hide the similar variable in the outer one). * mark_rts.c (GC_print_static_roots): Output an error message using GC_err_printf() (instead of GC_printf()).
Diffstat (limited to 'dyn_load.c')
-rw-r--r--dyn_load.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/dyn_load.c b/dyn_load.c
index 4056e35..f7c9360 100644
--- a/dyn_load.c
+++ b/dyn_load.c
@@ -188,7 +188,7 @@ void GC_register_dynamic_libraries(void)
ElfW(Phdr) * p;
unsigned long offset;
char * start;
- register int i;
+ int i;
e = (ElfW(Ehdr) *) lm->l_addr;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
@@ -626,7 +626,7 @@ void GC_register_dynamic_libraries(void)
ElfW(Phdr) * p;
unsigned long offset;
char * start;
- register int i;
+ int i;
e = (ElfW(Ehdr) *) lm->l_addr;
p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
@@ -752,10 +752,10 @@ void GC_register_dynamic_libraries(void)
/* Known irrelevant map entries */
static int n_irr = 0;
struct stat buf;
- register int i;
+ register int j;
- for (i = 0; i < n_irr; i++) {
- if (map_irr[i] == start) goto irrelevant;
+ for (j = 0; j < n_irr; j++) {
+ if (map_irr[j] == start) goto irrelevant;
}
arg = (caddr_t)start;
obj = ioctl(fd, PIOCOPENM, &arg);