mca_base_framework: use the right type for dequeued list items
The items on the list are (mca_base_component_list_item_t*)'s, not (mca_base_component_t*)'s.
Этот коммит содержится в:
родитель
e02121af6f
Коммит
3e8f468709
@ -2,6 +2,7 @@
|
||||
/*
|
||||
* Copyright (c) 2012-2015 Los Alamos National Security, LLC. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||
* $COPYRIGHT$
|
||||
*
|
||||
* Additional copyrights may follow
|
||||
@ -199,7 +200,10 @@ int mca_base_framework_close (struct mca_base_framework_t *framework) {
|
||||
} else {
|
||||
opal_list_item_t *item;
|
||||
while (NULL != (item = opal_list_remove_first (&framework->framework_components))) {
|
||||
mca_base_component_unload ((mca_base_component_t *) item, framework->framework_output);
|
||||
mca_base_component_list_item_t *cli;
|
||||
cli = (mca_base_component_list_item_t*) item;
|
||||
mca_base_component_unload(cli->cli_component,
|
||||
framework->framework_output);
|
||||
OBJ_RELEASE(item);
|
||||
}
|
||||
ret = OPAL_SUCCESS;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user