Author: axeld Date: 2010-06-25 10:35:02 +0200 (Fri, 25 Jun 2010) New Revision: 37251 Changeset: http://dev.haiku-os.org/changeset/37251/haiku Modified: haiku/trunk/src/system/boot/loader/menu.cpp haiku/trunk/src/system/boot/platform/bios_ia32/smp.cpp Log: * Fixed warnings. Modified: haiku/trunk/src/system/boot/loader/menu.cpp =================================================================== --- haiku/trunk/src/system/boot/loader/menu.cpp 2010-06-25 08:30:17 UTC (rev 37250) +++ haiku/trunk/src/system/boot/loader/menu.cpp 2010-06-25 08:35:02 UTC (rev 37251) @@ -1,5 +1,5 @@ /* - * Copyright 2003-2009, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx + * Copyright 2003-2010, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx * Distributed under the terms of the MIT License. */ @@ -347,7 +347,7 @@ void Menu::AddShortcut(char key, shortcut_hook function) { - Menu::shortcut* shortcut = new(std::nothrow) struct Menu::shortcut; + Menu::shortcut* shortcut = new(std::nothrow) Menu::shortcut; if (shortcut == NULL) return; Modified: haiku/trunk/src/system/boot/platform/bios_ia32/smp.cpp =================================================================== --- haiku/trunk/src/system/boot/platform/bios_ia32/smp.cpp 2010-06-25 08:30:17 UTC (rev 37250) +++ haiku/trunk/src/system/boot/platform/bios_ia32/smp.cpp 2010-06-25 08:35:02 UTC (rev 37251) @@ -1,6 +1,6 @@ /* * Copyright 2008, Dustin Howett, dustin.howett@xxxxxxxxxx All rights reserved. - * Copyright 2004-2009, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx + * Copyright 2004-2010, Axel Dörfler, axeld@xxxxxxxxxxxxxxxxx * Distributed under the terms of the MIT License. * * Copyright 2001, Travis Geiselbrecht. All rights reserved. @@ -79,7 +79,7 @@ return 0; uint8_t apic_id = (apic_read(APIC_ID) & 0xffffffff) >> 24; - for (int i = 0; i < gKernelArgs.num_cpus; i++) { + for (uint32 i = 0; i < gKernelArgs.num_cpus; i++) { if (gKernelArgs.arch_args.cpu_apic_id[i] == apic_id) return i; }