diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-09-19 20:48:37 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-09-19 20:48:37 +0000 |
commit | f8e8ce0470b8b0b911f64d026fd0176871619528 (patch) | |
tree | 75a716a02a23b90ec91427c2156fbe34ca0cdfb0 /usr.sbin/rpki-client | |
parent | a66430b24aaf9ca9c60e6163f77dd65b3af8dc59 (diff) |
Shift 1U rather than 1 to avoid -Wsign-compare whining
claudio agress
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r-- | usr.sbin/rpki-client/repo.c | 4 |
1 files 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 <claudio@openbsd.org> * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> @@ -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; } |