Fix minor errors in the dynamic module repository code
This commit was SVN r1308.
Этот коммит содержится в:
родитель
baf2ed86a7
Коммит
7f9a8368e2
@ -90,7 +90,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* mca_base_module_register.c */
|
/* mca_base_module_register.c */
|
||||||
|
|
||||||
int mca_base_module_repository_construct(void);
|
int mca_base_module_repository_initialize(void);
|
||||||
int mca_base_module_repository_retain(char *type,
|
int mca_base_module_repository_retain(char *type,
|
||||||
lt_dlhandle module_handle,
|
lt_dlhandle module_handle,
|
||||||
const mca_base_module_t *module_struct);
|
const mca_base_module_t *module_struct);
|
||||||
|
@ -58,7 +58,7 @@ static void release_repository_item(repository_item_t *ri);
|
|||||||
/*
|
/*
|
||||||
* Initialize the repository
|
* Initialize the repository
|
||||||
*/
|
*/
|
||||||
int mca_base_module_repository_construct(void)
|
int mca_base_module_repository_initialize(void)
|
||||||
{
|
{
|
||||||
/* Setup internal structures */
|
/* Setup internal structures */
|
||||||
|
|
||||||
@ -205,7 +205,7 @@ static repository_item_t *find_module(const char *type, const char *name)
|
|||||||
for (item = ompi_list_get_first(&repository);
|
for (item = ompi_list_get_first(&repository);
|
||||||
ompi_list_get_end(&repository) != item;
|
ompi_list_get_end(&repository) != item;
|
||||||
item = ompi_list_get_next(item)) {
|
item = ompi_list_get_next(item)) {
|
||||||
ri = (repository_item_t *) ri;
|
ri = (repository_item_t *) item;
|
||||||
if (0 == strcmp(ri->ri_type, type) &&
|
if (0 == strcmp(ri->ri_type, type) &&
|
||||||
0 == strcmp(ri->ri_module_struct->mca_module_name, name))
|
0 == strcmp(ri->ri_module_struct->mca_module_name, name))
|
||||||
return ri;
|
return ri;
|
||||||
@ -283,7 +283,7 @@ static void release_repository_item(repository_item_t *ri)
|
|||||||
pointer is no longer valid because it has [potentially] been
|
pointer is no longer valid because it has [potentially] been
|
||||||
unloaded from memory. So don't try to use it. :-) */
|
unloaded from memory. So don't try to use it. :-) */
|
||||||
|
|
||||||
OBJ_DESTRUCT(&di->di_repository_entry->ri_dependencies);
|
OBJ_DESTRUCT(&ri->ri_dependencies);
|
||||||
ompi_list_remove_item(&repository, (ompi_list_item_t *) ri);
|
ompi_list_remove_item(&repository, (ompi_list_item_t *) ri);
|
||||||
free(ri);
|
free(ri);
|
||||||
}
|
}
|
||||||
|
@ -63,7 +63,7 @@ int mca_base_open(void)
|
|||||||
|
|
||||||
/* Open up the module repository */
|
/* Open up the module repository */
|
||||||
|
|
||||||
return mca_base_module_repository_construct();
|
return mca_base_module_repository_initialize();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user