1
1

orte_iof_base.output_limit is an unsigned type; just initialize it to INT_MAX

cmr=v1.7.4:reviewer=rhc

This commit was SVN r29693.
Этот коммит содержится в:
Jeff Squyres 2013-11-13 19:36:43 +00:00
родитель abeef55a55
Коммит 038116e4b8

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

@ -10,6 +10,7 @@
* Copyright (c) 2004-2005 The Regents of the University of California. * Copyright (c) 2004-2005 The Regents of the University of California.
* All rights reserved. * All rights reserved.
* Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved. * Copyright (c) 2013 Los Alamos National Security, LLC. All rights reserved.
* Copyright (c) 2013 Cisco Systems, Inc. All rights reserved.
* $COPYRIGHT$ * $COPYRIGHT$
* *
* Additional copyrights may follow * Additional copyrights may follow
@ -184,7 +185,7 @@ orte_iof_base_t orte_iof_base;
static int orte_iof_base_register(mca_base_register_flag_t flags) static int orte_iof_base_register(mca_base_register_flag_t flags)
{ {
/* check for maximum number of pending output messages */ /* check for maximum number of pending output messages */
orte_iof_base.output_limit = (size_t)-1; orte_iof_base.output_limit = (size_t) INT_MAX;
(void) mca_base_var_register("orte", "iof", "base", "output_limit", (void) mca_base_var_register("orte", "iof", "base", "output_limit",
"Maximum backlog of output messages [default: unlimited]", "Maximum backlog of output messages [default: unlimited]",
MCA_BASE_VAR_TYPE_SIZE_T, NULL, 0, 0, MCA_BASE_VAR_TYPE_SIZE_T, NULL, 0, 0,
@ -223,11 +224,6 @@ static int orte_iof_base_open(mca_base_open_flag_t flags)
{ {
int rc, xmlfd; int rc, xmlfd;
/* Initialize globals */
if (0 > orte_iof_base.output_limit) {
orte_iof_base.output_limit = INT_MAX;
}
/* did the user request we print output to files? */ /* did the user request we print output to files? */
if (NULL != orte_output_filename) { if (NULL != orte_output_filename) {
/* we will setup the files themselves as needed in the iof /* we will setup the files themselves as needed in the iof