sizeof(module_t), since it's already a pointer of type module_t.
* docs/kernel.c (cmain): Do the same.
+2004-10-11 Jason Thomas <jason@staff.pnc.com.au>
+ Patch from Stefanus Du Toit <sjdutoit@uwaterloo.ca>
+ * docs/kernel.c.texi (cmain): Incremement mod by one, instead of
+ sizeof(module_t), since it's already a pointer of type module_t.
+ * docs/kernel.c (cmain): Do the same.
+
2004-09-20 Yoshinori K. Okuji <okuji@enbug.org>
* docs/internals.texi (Internals): Changed to an appendix.
(int) mbi->mods_count, (int) mbi->mods_addr);
for (i = 0, mod = (module_t *) mbi->mods_addr;
i < mbi->mods_count;
- i++, mod += sizeof (module_t))
+ i++, mod++)
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
(unsigned) mod->mod_start,
(unsigned) mod->mod_end,
(int) mbi->mods_count, (int) mbi->mods_addr);
for (i = 0, mod = (module_t *) mbi->mods_addr;
i < mbi->mods_count;
- i++, mod += sizeof (module_t))
+ i++, mod++)
printf (" mod_start = 0x%x, mod_end = 0x%x, string = %s\n",
(unsigned) mod->mod_start,
(unsigned) mod->mod_end,