[svn-r8912] Purpose:

bug fixes

Description:

the return error code for a  function was not initialized.
in HP-UX  it happened that this variable was initialized to -1
causing the function to return with an error condtion
solution : initialized the variable to 0

the name of the dataset was printed after the differences in verbose mode
and report when differences were found
solution : check first if differences were found and then
print the name of dataset and differences
in verbose mode always print the name first

Solution:

Platforms tested:
linux
aix
solaris

Misc. update:
This commit is contained in:
Pedro Vicente Nunes
2004-07-21 12:50:49 -05:00
parent 50a853d807
commit 140dfae48a
18 changed files with 291 additions and 209 deletions

View File

@@ -24,12 +24,13 @@ static hbool_t is_zero(const void *_mem, size_t size);
/*-------------------------------------------------------------------------
* Function: print_data
*
* Purpose: print data only in report or verbose modes
* Purpose: print data only in report or verbose modes,
* and do not print in quiet mode
*-------------------------------------------------------------------------
*/
static int print_data(diff_opt_t *options)
{
return (options->m_report || options->m_verbose==1)?1:0;
{
return ( (options->m_report || options->m_verbose) && !options->m_quiet)?1:0;
}
/*-------------------------------------------------------------------------
@@ -208,7 +209,7 @@ hsize_t diff_datum(void *_mem1,
H5G_stat_t sb1;
H5G_stat_t sb2;
hsize_t nfound=0; /* differences found */
int ret;
int ret=0; /* check return error */
/* Build default formats for long long types */
sprintf(fmt_llong, "%%%sd %%%sd %%%sd\n",