From dbb3d1fc5b6b51889f4a77f747431b155b0deb7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Sat, 6 Sep 2003 17:35:05 +0000 Subject: [PATCH] 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 --- src/kernel/core/module.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/kernel/core/module.c b/src/kernel/core/module.c index 79a3621a2d..1d94c517c3 100644 --- a/src/kernel/core/module.c +++ b/src/kernel/core/module.c @@ -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));