File timer-entropyd-fix_warnings.patch of Package timer-entropyd
--- main.c.orig
+++ main.c
@@ -2,6 +2,10 @@
#include <stdio.h>
#include <signal.h>
#include <syslog.h>
+#include <unistd.h>
+#include "error.h"
+#include "kernel.h"
+#include "math.h"
double get_ts(void)
{
@@ -32,7 +36,7 @@ double gen_entropy_data(void)
int main(int argc, char *argv[])
{
unsigned char bytes[2500];
- unsigned char byte;
+ unsigned char byte = 0;
int bits = 0, index = 0;
printf("timer_entropyd v" VERSION ", (C) 2009 by folkert@vanheusden.com\n\n");