Remove an unreachable error message
authortb <tb@openbsd.org>
Wed, 20 Apr 2022 04:40:33 +0000 (04:40 +0000)
committertb <tb@openbsd.org>
Wed, 20 Apr 2022 04:40:33 +0000 (04:40 +0000)
If timeout != 0 and 0 <= timeout <= 24*60*60, then timeout < 1 is
impossible.

ok

usr.sbin/rpki-client/main.c

index 2549559..c800e2c 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: main.c,v 1.197 2022/04/19 20:06:48 tb Exp $ */
+/*     $OpenBSD: main.c,v 1.198 2022/04/20 04:40:33 tb Exp $ */
 /*
  * Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
  * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
@@ -790,8 +790,6 @@ main(int argc, char *argv[])
                                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;