svn commit: r357867 - head/tests/sys/net
Li-Wen Hsu
lwhsu at FreeBSD.org
Thu Feb 13 19:05:21 UTC 2020
Author: lwhsu
Date: Thu Feb 13 19:05:19 2020
New Revision: 357867
URL: https://svnweb.freebsd.org/changeset/base/357867
Log:
Fix GCC build.
Sponsored by: The FreeBSD Foundation
Modified:
head/tests/sys/net/randsleep.c
Modified: head/tests/sys/net/randsleep.c
==============================================================================
--- head/tests/sys/net/randsleep.c Thu Feb 13 19:05:14 2020 (r357866)
+++ head/tests/sys/net/randsleep.c Thu Feb 13 19:05:19 2020 (r357867)
@@ -37,7 +37,7 @@
#include <stdlib.h>
#include <unistd.h>
-#define RANDOM_MAX ((1<<31) - 1)
+#define RANDOM_MAX (((long)1<<31) - 1)
int main(int argc, char** argv){
useconds_t max_usecs, usecs;
More information about the svn-src-all
mailing list