summaryrefslogtreecommitdiffstats
path: root/tools/h5diff/h5diff_main.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-03 15:35:32 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2003-12-03 15:35:32 (GMT)
commit2d011283a352d0a972c66155b2981a2e66c87e39 (patch)
tree1c94b2f56a1c2805bbe63abb51904dfb38692332 /tools/h5diff/h5diff_main.c
parenta70274eceafe9dc364329eb395f50e81db7c7bd1 (diff)
downloadhdf5-2d011283a352d0a972c66155b2981a2e66c87e39.zip
hdf5-2d011283a352d0a972c66155b2981a2e66c87e39.tar.gz
hdf5-2d011283a352d0a972c66155b2981a2e66c87e39.tar.bz2
[svn-r7908] Purpose:
code clean, bug fix Description: cleaned warnings on IRIX fixed bug in parse command line Solution: Platforms tested: linux IRIX 6.5 64 Misc. update:
Diffstat (limited to 'tools/h5diff/h5diff_main.c')
-rw-r--r--tools/h5diff/h5diff_main.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/h5diff/h5diff_main.c b/tools/h5diff/h5diff_main.c
index 58fc9a9..0fb0576 100644
--- a/tools/h5diff/h5diff_main.c
+++ b/tools/h5diff/h5diff_main.c
@@ -118,6 +118,7 @@ int main(int argc, const char *argv[])
usage();
}
options.delta = atof(argv[i+1]);
+ i++; /* go to next */
}
else
{
@@ -135,6 +136,7 @@ int main(int argc, const char *argv[])
usage();
}
options.percent = atof(argv[i+1]);
+ i++; /* go to next */
}
break;
case 'n':
@@ -147,6 +149,7 @@ int main(int argc, const char *argv[])
usage();
}
options.count = atoi(argv[i+1]);
+ i++; /* go to next */
}
break;
} /*switch*/
@@ -166,9 +169,11 @@ int main(int argc, const char *argv[])
if ( objname2==NULL )
{
/* check if we have a second object name */
- if ( i+1<argc && '-' !=argv[i+1][0] )
+ if ( i+1<argc && '-' !=argv[i+1][0] ) {
/* yes */
objname2 = argv[i+1];
+ i++; /* go to next */
+ }
else
/* no */
objname2 = objname1;