From: tb Date: Thu, 19 Sep 2024 20:48:36 +0000 (+0000) Subject: Shift 1U rather than 1 to avoid -Wsign-compare whining X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=acc4629865647fd613bba39a580ec29418447835;p=openbsd Shift 1U rather than 1 to avoid -Wsign-compare whining claudio agress --- diff --git a/usr.sbin/rpki-client/repo.c b/usr.sbin/rpki-client/repo.c index 950568679ee..27ec6fc3648 100644 --- a/usr.sbin/rpki-client/repo.c +++ b/usr.sbin/rpki-client/repo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: repo.c,v 1.66 2024/09/03 15:37:03 tb Exp $ */ +/* $OpenBSD: repo.c,v 1.67 2024/09/19 20:48:36 tb Exp $ */ /* * Copyright (c) 2021 Claudio Jeker * Copyright (c) 2019 Kristaps Dzonsons @@ -735,7 +735,7 @@ rrdp_session_parse(struct rrdprepo *rr) warnx("%s: reinitializing", rr->notifyuri); goto reset; } - if (arc4random_uniform(1 << RRDP_RANDOM_REINIT_MAX) < (1 << weeks)) { + if (arc4random_uniform(1U << RRDP_RANDOM_REINIT_MAX) < (1U << weeks)) { warnx("%s: reinitializing", rr->notifyuri); goto reset; }