Fixed some warnings.

Added a comment about how to traverse the module path to find a given module -
could well be that we got that wrong (too loose, it will work perfectly, though,
just slower than it could be).


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4516 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2003-09-06 17:35:05 +00:00
parent 080cec2518
commit dbb3d1fc5b

View File

@ -507,10 +507,15 @@ static module *
search_module(const char *name)
{
status_t status = B_ENTRY_NOT_FOUND;
int i;
uint32 i;
TRACE(("search_module(%s)\n", name));
// ToDo: this could take parts of the module name to check there for
// the module first, since module names are usually path/name/version
// anyway.
// It might even be the convention to do so on BeOS! Please check!
for (i = 0; i < NUM_MODULE_PATHS; i++) {
if (modules_disable_user_addons && i >= USER_MODULE_PATHS)
return NULL;
@ -869,7 +874,7 @@ open_module_list(const char *prefix)
{
char path[SYS_MAX_PATH_LEN];
module_iterator *iterator;
int i;
uint32 i;
TRACE(("open_module_list(prefix = %s)\n", prefix));