* Fixed warnings.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37251 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2010-06-25 08:35:02 +00:00
parent 9209acd256
commit 36c80d7002
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/* /*
* Copyright 2003-2009, Axel Dörfler, [email protected]. * Copyright 2003-2010, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
*/ */
@@ -347,7 +347,7 @@ Menu::RemoveItem(MenuItem* item)
void void
Menu::AddShortcut(char key, shortcut_hook function) 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) if (shortcut == NULL)
return; return;
+2 -2
View File
@@ -1,6 +1,6 @@
/* /*
* Copyright 2008, Dustin Howett, [email protected]. All rights reserved. * Copyright 2008, Dustin Howett, [email protected]. All rights reserved.
* Copyright 2004-2009, Axel Dörfler, [email protected]. * Copyright 2004-2010, Axel Dörfler, [email protected].
* Distributed under the terms of the MIT License. * Distributed under the terms of the MIT License.
* *
* Copyright 2001, Travis Geiselbrecht. All rights reserved. * Copyright 2001, Travis Geiselbrecht. All rights reserved.
@@ -79,7 +79,7 @@ smp_get_current_cpu(void)
return 0; return 0;
uint8_t apic_id = (apic_read(APIC_ID) & 0xffffffff) >> 24; 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) if (gKernelArgs.arch_args.cpu_apic_id[i] == apic_id)
return i; return i;
} }