summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2022-04-20 04:40:34 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2022-04-20 04:40:34 +0000
commit11fd22010852d6233e84d3439d1b0bf4d9c83cde (patch)
tree835cbfe2b8597f685c5f4a1831763cfd6e0c5649
parent4510667dde54fcbd80b8fde10439cb056d78e70c (diff)
Remove an unreachable error message
If timeout != 0 and 0 <= timeout <= 24*60*60, then timeout < 1 is impossible. ok
-rw-r--r--usr.sbin/rpki-client/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/main.c b/usr.sbin/rpki-client/main.c
index 25495594a77..c800e2cf72e 100644
--- a/usr.sbin/rpki-client/main.c
+++ b/usr.sbin/rpki-client/main.c
@@ -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;