131 |
if (CHECK_FLAG (mbi->flags, 3)) |
if (CHECK_FLAG (mbi->flags, 3)) |
132 |
{ |
{ |
133 |
module_t *mod = (module_t *) mbi->mods_addr; |
module_t *mod = (module_t *) mbi->mods_addr; |
|
unsigned int nr_mods; |
|
134 |
unsigned int i; |
unsigned int i; |
135 |
|
|
136 |
mods_count = mbi->mods_count - 1; |
mods_count = mbi->mods_count - 1; |
139 |
/* Skip the entry for the rootserver. */ |
/* Skip the entry for the rootserver. */ |
140 |
mod++; |
mod++; |
141 |
|
|
142 |
for (i = 0; i < nr_mods; i++) |
for (i = 0; i < mods_count; i++) |
143 |
{ |
{ |
144 |
mods[i].name = mod_names[i]; |
mods[i].name = mod_names[i]; |
145 |
mods[i].start = mod[i].mod_start; |
mods[i].start = mod[i].mod_start; |