On Tue, Apr 19, 2022 at 10:04:26PM +0200, Theo Buehler wrote:
> I first wanted to change the %i to a %d, then I noticed that timeout < 1
> can't be true since timeout != 0 and 0 <= timeout <= 24*60*60.

Makes sense. OK claudio@
 
> Index: main.c
> ===================================================================
> RCS file: /cvs/src/usr.sbin/rpki-client/main.c,v
> retrieving revision 1.196
> diff -u -p -U5 -r1.196 main.c
> --- main.c    19 Apr 2022 13:52:24 -0000      1.196
> +++ main.c    19 Apr 2022 19:59:50 -0000
> @@ -788,12 +788,10 @@ main(int argc, char *argv[])
>                       timeout = strtonum(optarg, 0, 24*60*60, &errs);
>                       if (errs)
>                               errx(1, "-s: %s", errs);
>                       if (timeout == 0)
>                               repo_timeout = 24*60*60;
> -                     else if (timeout < 1)
> -                             errx(1, "-s: %i too small", timeout);
>                       else
>                               repo_timeout = timeout / 4;
>                       break;
>               case 't':
>                       if (talsz >= TALSZ_MAX)
> 

-- 
:wq Claudio

Reply via email to