git: b43c3200a4f2 - stable/12 - Properly fix GCC build in r357867
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 Mar 2023 22:28:38 UTC
The branch stable/12 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b43c3200a4f2f308194f17dcb390cad8f51905e1 commit b43c3200a4f2f308194f17dcb390cad8f51905e1 Author: Li-Wen Hsu <lwhsu@FreeBSD.org> AuthorDate: 2020-02-14 09:25:29 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2023-03-22 19:22:25 +0000 Properly fix GCC build in r357867 Submitted by: kib Sponsored by: The FreeBSD Foundation (cherry picked from commit c27ac74f9cfea08a96087135183ad70a372f735d) --- tests/sys/net/randsleep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/net/randsleep.c b/tests/sys/net/randsleep.c index 8bbad5b7557d..dfff24e90db5 100644 --- a/tests/sys/net/randsleep.c +++ b/tests/sys/net/randsleep.c @@ -37,7 +37,7 @@ #include <stdlib.h> #include <unistd.h> -#define RANDOM_MAX (((long)1<<31) - 1) +#define RANDOM_MAX ((1U<<31) - 1) int main(int argc, char** argv){ useconds_t max_usecs, usecs;