[svn-r15901] undo some changes in the list of parameters of parse_command_line (forgot that this function is called both on serial and parallel)

tested: linux
This commit is contained in:
Pedro Vicente Nunes
2008-10-17 22:01:34 -05:00
parent 1e1bcb801c
commit 3a6ad02916
3 changed files with 32 additions and 38 deletions

View File

@@ -78,46 +78,12 @@ int main(int argc, const char *argv[])
hsize_t nfound=0;
diff_opt_t options;
/*-------------------------------------------------------------------------
* initialize options
*-------------------------------------------------------------------------
*/
/* zero defaults */
memset(&options, 0, sizeof (diff_opt_t));
/* assume equal contents initially */
options.contents = 1;
/*-------------------------------------------------------------------------
* process the command-line
*-------------------------------------------------------------------------
*/
parse_command_line(argc, argv, &options);
/*-------------------------------------------------------------------------
* file and object names
*-------------------------------------------------------------------------
*/
fname1 = argv[ opt_ind ];
fname2 = argv[ opt_ind + 1 ];
objname1 = argv[ opt_ind + 2 ];
if ( objname1 == NULL )
{
objname2 = NULL;
}
if ( argv[ opt_ind + 3 ] != NULL)
{
objname2 = argv[ opt_ind + 3 ];
}
else
{
objname2 = objname1;
}
parse_command_line(argc, argv, &fname1, &fname2, &objname1, &objname2, &options);
/*-------------------------------------------------------------------------
* do the diff