Commit 17dd31f3139bc44aac8f8289684d87130c95ec5f

Authored by root
Committed by Georg Hopp
1 parent 3b95766a

fixed some stuff related to previuos cleanup

@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 #include <time.h> 42 #include <time.h>
43 43
44 44
45 -int add_entropy(unsigned char *, size_t); 45 +int add_entropy(const unsigned char *, size_t);
46 46
47 module AP_MODULE_DECLARE_DATA entropy_module; 47 module AP_MODULE_DECLARE_DATA entropy_module;
48 48
@@ -24,12 +24,13 @@ @@ -24,12 +24,13 @@
24 #include <errno.h> 24 #include <errno.h>
25 #include <stdlib.h> 25 #include <stdlib.h>
26 #include <string.h> 26 #include <string.h>
  27 +#include <stdio.h>
27 #include <linux/random.h> 28 #include <linux/random.h>
28 #include <sys/ioctl.h> 29 #include <sys/ioctl.h>
29 #include <sys/types.h> 30 #include <sys/types.h>
30 #include <sys/stat.h> 31 #include <sys/stat.h>
31 32
32 -int get_entropy_bits(unsigned char *, size_t); 33 +int get_entropy_bits(const unsigned char *, size_t);
33 34
34 /** 35 /**
35 * fill /dev/random with sha1 from current request 36 * fill /dev/random with sha1 from current request
@@ -20,6 +20,7 @@ @@ -20,6 +20,7 @@
20 */ 20 */
21 21
22 #include <math.h> 22 #include <math.h>
  23 +#include <sys/types.h>
23 24
24 #define min(x, y) ((x)<(y)?(x):(y)) 25 #define min(x, y) ((x)<(y)?(x):(y))
25 26
Please register or login to post a comment