From acc4629865647fd613bba39a580ec29418447835 Mon Sep 17 00:00:00 2001 From: tb Date: Thu, 19 Sep 2024 20:48:36 +0000 Subject: [PATCH] Shift 1U rather than 1 to avoid -Wsign-compare whining claudio agress --- usr.sbin/rpki-client/repo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.20.1