Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Mar 2023 22:28:38 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: b43c3200a4f2 - stable/12 - Properly fix GCC build in r357867
Message-ID:  <202303222228.32MMSc6K001824@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202303222228.32MMSc6K001824>