* cygcheck.cc (main): Fix argument counting.

This commit is contained in:
Corinna Vinschen 2000-10-16 23:12:58 +00:00
parent 5460fae73f
commit d9d9b70718
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Tue Oct 17 1:09:00 2000 Corinna Vinschen <corinna@vinschen.de>
Patch suggested by Brad Town <btown@ceddec.com>:
* cygcheck.cc (main): Fix argument counting.
Sat Oct 14 23:42:58 2000 Christopher Faylor <cgf@cygnus.com>
* ps.cc (main): Accomodate new PID_ constant.

View File

@ -1063,9 +1063,9 @@ main (int argc, char **argv)
init_paths ();
if (argc > 1 && givehelp)
if (argc >= 1 && givehelp)
{
if (argc == 2)
if (argc == 1)
{
printf ("Here is where the OS will find your program, and which dlls\n");
printf ("will be used for it. Use -v to see DLL version info\n");
@ -1080,7 +1080,7 @@ main (int argc, char **argv)
printf ("\n");
}
for (i = 1; i < argc; i++)
for (i = 0; i < argc; i++)
{
cygcheck (argv[i]);
printf ("\n");