Commit 17dd31f3139bc44aac8f8289684d87130c95ec5f

Authored by root
Committed by Georg Hopp
1 parent 3b95766a

fixed some stuff related to previuos cleanup

... ... @@ -42,7 +42,7 @@
42 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 47 module AP_MODULE_DECLARE_DATA entropy_module;
48 48
... ...
... ... @@ -24,12 +24,13 @@
24 24 #include <errno.h>
25 25 #include <stdlib.h>
26 26 #include <string.h>
  27 +#include <stdio.h>
27 28 #include <linux/random.h>
28 29 #include <sys/ioctl.h>
29 30 #include <sys/types.h>
30 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 36 * fill /dev/random with sha1 from current request
... ...
... ... @@ -20,6 +20,7 @@
20 20 */
21 21
22 22 #include <math.h>
  23 +#include <sys/types.h>
23 24
24 25 #define min(x, y) ((x)<(y)?(x):(y))
25 26
... ...
Please register or login to post a comment