* Fixed warning.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-11-09 11:40:02 +00:00
parent a256ee64d9
commit 0a9f301a59
+4 -2
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2004-2008, Haiku, Inc. All rights reserved.
* Copyright 2004-2009, Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -8,8 +8,10 @@
* Jérôme Duval
*/
//! Manager for input_server add-ons (devices, filters, methods)
#include "AddOnManager.h"
#include <stdio.h>
@@ -184,7 +186,7 @@ AddOnManager::_RegisterAddOns()
// when safemode, only B_BEOS_ADDONS_DIRECTORY is used
for (uint32 i = fSafeMode ? 2 : 0;
i < sizeof(directories) / sizeof(directory_which); i++) {
for (uint32 j = 0; j < subDirectoryCount; j++) {
for (int32 j = 0; j < subDirectoryCount; j++) {
if (find_directory(directories[i], &path) == B_OK
&& path.Append(subDirectories[j]) == B_OK
&& directory.SetTo(path.Path()) == B_OK