[master] 5a83d47 srandom() argument is unsigned long, not unsigned int.

Poul-Henning Kamp phk at varnish-cache.org
Thu May 12 16:25:52 CEST 2011


commit 5a83d477adf258a5ea95081f7f1dfceb1311eff5
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Thu May 12 13:56:28 2011 +0000

    srandom() argument is unsigned long, not unsigned int.

diff --git a/lib/libvarnishcompat/srandomdev.c b/lib/libvarnishcompat/srandomdev.c
index 47ae815..bedea6a 100644
--- a/lib/libvarnishcompat/srandomdev.c
+++ b/lib/libvarnishcompat/srandomdev.c
@@ -44,7 +44,7 @@ void
 srandomdev(void)
 {
 	struct timeval tv;
-	unsigned int seed;
+	unsigned long seed;
 	int fd;
 
 	if ((fd = open("/dev/urandom", O_RDONLY)) >= 0 ||



More information about the varnish-commit mailing list