From: tb Date: Wed, 20 Apr 2022 04:40:33 +0000 (+0000) Subject: Remove an unreachable error message X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=fa24c111af12a029cd4ef67198ee43ec0b0a7a5c;p=openbsd Remove an unreachable error message If timeout != 0 and 0 <= timeout <= 24*60*60, then timeout < 1 is impossible. ok --- 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 * Copyright (c) 2019 Kristaps Dzonsons @@ -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;