bug-inetutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-inetutils] up to date inetutils


From: Andy Furniss
Subject: Re: [bug-inetutils] up to date inetutils
Date: Fri, 29 Jul 2005 18:02:39 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.7.10) Gecko/20050716

Alfred M. Szmidt wrote:
   Thanks - I've got it built now, but the -i option doesn't work at
   all.

The following should fix this.  Thanks for finding the bug.

2005-07-29  Alfred M. Szmidt  <address@hidden>

        * ping.c (main): Store the interval in the variable INTERVAL when
        parsing arguments.

--- ping.c      20 Jun 2005 10:00:54 +0200      1.22
+++ ping.c      29 Jul 2005 18:33:05 +0200      
@@ -159,6 +159,7 @@ main (int argc, char **argv)
case 'i':
          options |= OPT_INTERVAL;
+         interval = atoi (optarg);
          if (interval <= 0)
            error (1, 0, "invalid interval: %i", interval);
          break;


Thanks.

It fixes it for -i >=1 but -i <1 still gives invalid interval.

Andy.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]