[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:
This commit is contained in:
Pedro Vicente Nunes
2003-12-03 10:35:32 -05:00
parent a70274ecea
commit 2d011283a3
12 changed files with 58 additions and 24 deletions

View File

@@ -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;