Correct a comment and protect the usage of the environ variable against Windows.
This commit was SVN r11397.
Этот коммит содержится в:
родитель
76d2a0bb74
Коммит
e04032ca2f
@ -2,7 +2,7 @@
|
||||
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -68,7 +68,9 @@
|
||||
|
||||
#include "orte/tools/orted/orted.h"
|
||||
|
||||
extern char**environ;
|
||||
#if !defined(__WINDOWS__)
|
||||
extern char** environ;
|
||||
#endif /* !defined(__WINDOWS__) */
|
||||
|
||||
orted_globals_t orted_globals;
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
* Copyright (c) 2004-2006 The Trustees of Indiana University and Indiana
|
||||
* University Research and Technology
|
||||
* Corporation. All rights reserved.
|
||||
* Copyright (c) 2004-2005 The University of Tennessee and The University
|
||||
* Copyright (c) 2004-2006 The University of Tennessee and The University
|
||||
* of Tennessee Research Foundation. All rights
|
||||
* reserved.
|
||||
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
||||
@ -1324,7 +1324,7 @@ static int create_app(int argc, char* argv[], orte_app_context_t **app_ptr,
|
||||
}
|
||||
|
||||
if (NULL != param) {
|
||||
/* "Parse" the param, aka remove superfluous path_sep "/". */
|
||||
/* "Parse" the param, aka remove superfluous path_sep. */
|
||||
param_len = strlen(param);
|
||||
while (0 == strcmp (OPAL_PATH_SEP, &(param[param_len-1]))) {
|
||||
param[param_len-1] = '\0';
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user