The print function doesn't change the process name, so take a const...
This commit was SVN r15531.
Этот коммит содержится в:
родитель
5b9fa7e998
Коммит
9a476c7fdd
@ -58,7 +58,7 @@ get_print_name_buffer(void)
|
|||||||
return (char*) buffer;
|
return (char*) buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
char* orte_ns_base_print_name_args(orte_process_name_t *name)
|
char* orte_ns_base_print_name_args(const orte_process_name_t *name)
|
||||||
{
|
{
|
||||||
char *print_name_buf = get_print_name_buffer();
|
char *print_name_buf = get_print_name_buffer();
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@ typedef struct orte_process_name_t orte_process_name_t;
|
|||||||
|
|
||||||
|
|
||||||
/* useful define to print name args in output messages */
|
/* useful define to print name args in output messages */
|
||||||
ORTE_DECLSPEC extern char* orte_ns_base_print_name_args(orte_process_name_t *name);
|
ORTE_DECLSPEC extern char* orte_ns_base_print_name_args(const orte_process_name_t *name);
|
||||||
#define ORTE_NAME_PRINT(n) \
|
#define ORTE_NAME_PRINT(n) \
|
||||||
orte_ns_base_print_name_args(n)
|
orte_ns_base_print_name_args(n)
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user