1
1

proc_info.c: uncomment C99 struct member initialization usage

The C99 usage to initialize via struct member names was already there,
but commented out.  This commit doesn't fix any known problem; it
simply uncomments the C99 code, because it's safer/better.

This commit was SVN r31425.
Этот коммит содержится в:
Jeff Squyres 2014-04-18 17:26:07 +00:00
родитель a88b24ce21
Коммит 530f22c403

Просмотреть файл

@ -47,46 +47,46 @@ extern bool orte_keep_fqdn_hostnames;
#define ORTE_NAME_INVALID {ORTE_JOBID_INVALID, ORTE_VPID_INVALID}
ORTE_DECLSPEC orte_proc_info_t orte_process_info = {
/* .my_name = */ ORTE_NAME_INVALID,
/* .my_daemon = */ ORTE_NAME_INVALID,
/* .my_daemon_uri = */ NULL,
/* .my_hnp = */ ORTE_NAME_INVALID,
/* .my_hnp_uri = */ NULL,
/* .my_parent = */ ORTE_NAME_INVALID,
/* .my_scheduler = */ ORTE_NAME_INVALID,
/* .hnp_pid = */ 0,
/* .app_num = */ 0,
/* .num_procs = */ 1,
/* .max_procs = */ 1,
/* .num_daemons = */ 1,
/* .num_nodes = */ 1,
/* .nodename = */ NULL,
/* .pid = */ 0,
/* .proc_type = */ ORTE_PROC_TYPE_NONE,
/* .sync_buf = */ NULL,
/* .my_port = */ 0,
/* .num_restarts = */ 0,
/* .my_node_rank = */ ORTE_NODE_RANK_INVALID,
/* .my_local_rank = */ ORTE_LOCAL_RANK_INVALID,
/* .num_local_peers = */ 0,
/* .tmpdir_base = */ NULL,
/* .top_session_dir = */ NULL,
/* .job_session_dir = */ NULL,
/* .proc_session_dir = */ NULL,
/* .sock_stdin = */ NULL,
/* .sock_stdout = */ NULL,
/* .sock_stderr = */ NULL,
.my_name = ORTE_NAME_INVALID,
.my_daemon = ORTE_NAME_INVALID,
.my_daemon_uri = NULL,
.my_hnp = ORTE_NAME_INVALID,
.my_hnp_uri = NULL,
.my_parent = ORTE_NAME_INVALID,
.my_scheduler = ORTE_NAME_INVALID,
.hnp_pid = 0,
.app_num = 0,
.num_procs = 1,
.max_procs = 1,
.num_daemons = 1,
.num_nodes = 1,
.nodename = NULL,
.pid = 0,
.proc_type = ORTE_PROC_TYPE_NONE,
.sync_buf = NULL,
.my_port = 0,
.num_restarts = 0,
.my_node_rank = ORTE_NODE_RANK_INVALID,
.my_local_rank = ORTE_LOCAL_RANK_INVALID,
.num_local_peers = 0,
.tmpdir_base = NULL,
.top_session_dir = NULL,
.job_session_dir = NULL,
.proc_session_dir = NULL,
.sock_stdin = NULL,
.sock_stdout = NULL,
.sock_stderr = NULL,
#if OPAL_HAVE_HWLOC
/* .cpuset = */ NULL,
.cpuset = NULL,
#endif
/* .app_rank = */ -1,
/* .peer_modex = */ -1,
/* .peer_init_barrier = */ -1,
/* .peer_fini_barrier = */ -1,
/* .my_hostid = */ ORTE_VPID_INVALID
.app_rank = -1,
.peer_modex = -1,
.peer_init_barrier = -1,
.peer_fini_barrier = -1,
.my_hostid = ORTE_VPID_INVALID
#if OPAL_ENABLE_FT_CR == 1
/* .snapc_init_barrier = */ -1,
/* .snapc_fini_barrier = */ -1,
.snapc_init_barrier = -1,
.snapc_fini_barrier = -1,
#endif
};