* Fixed warning.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33959 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -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.
|
* Distributed under the terms of the MIT License.
|
||||||
*
|
*
|
||||||
* Authors:
|
* Authors:
|
||||||
@@ -8,8 +8,10 @@
|
|||||||
* Jérôme Duval
|
* Jérôme Duval
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
//! Manager for input_server add-ons (devices, filters, methods)
|
//! Manager for input_server add-ons (devices, filters, methods)
|
||||||
|
|
||||||
|
|
||||||
#include "AddOnManager.h"
|
#include "AddOnManager.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
@@ -184,7 +186,7 @@ AddOnManager::_RegisterAddOns()
|
|||||||
// when safemode, only B_BEOS_ADDONS_DIRECTORY is used
|
// when safemode, only B_BEOS_ADDONS_DIRECTORY is used
|
||||||
for (uint32 i = fSafeMode ? 2 : 0;
|
for (uint32 i = fSafeMode ? 2 : 0;
|
||||||
i < sizeof(directories) / sizeof(directory_which); i++) {
|
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
|
if (find_directory(directories[i], &path) == B_OK
|
||||||
&& path.Append(subDirectories[j]) == B_OK
|
&& path.Append(subDirectories[j]) == B_OK
|
||||||
&& directory.SetTo(path.Path()) == B_OK
|
&& directory.SetTo(path.Path()) == B_OK
|
||||||
|
|||||||
Reference in New Issue
Block a user