diff random.c @ 698:5f2d16d3e598

fix signedness error in prototype
author Matt Johnston <matt@ucc.asn.au>
date Mon, 11 Mar 2013 23:07:45 +0800
parents c85bb68e1db6
children 48e173a0c52b
line wrap: on
line diff
--- a/random.c	Sun Mar 03 11:47:41 2013 +0800
+++ b/random.c	Mon Mar 11 23:07:45 2013 +0800
@@ -26,6 +26,7 @@
 #include "buffer.h"
 #include "dbutil.h"
 #include "bignum.h"
+#include "random.h"
 
 /* this is used to generate unique output from the same hashpool */
 static uint32_t counter = 0;
@@ -136,7 +137,7 @@
 	return ret;
 }
 
-void addrandom(char * buf, int len)
+void addrandom(char * buf, unsigned int len)
 {
 	hash_state hs;