File openswan_100_time.dif of Package openswan

diff -Nur openswan-2.6.28/lib/libopenswan/oswtime.c openswan-2.6.28-new/lib/libopenswan/oswtime.c
--- openswan-2.6.28/lib/libopenswan/oswtime.c	2010-07-29 20:45:59.000000000 +0200
+++ openswan-2.6.28-new/lib/libopenswan/oswtime.c	2010-09-03 11:32:49.000000000 +0200
@@ -36,7 +36,7 @@
 {
     static time_t delta = 0
 	, last_time = 0;
-    time_t n = time((time_t)NULL);
+    time_t n = time(NULL);
 
     passert(n != (time_t)-1);
     if (last_time > n)
diff -Nur openswan-2.6.28/programs/pluto/ikev1_main.c openswan-2.6.28-new/programs/pluto/ikev1_main.c
--- openswan-2.6.28/programs/pluto/ikev1_main.c	2010-07-29 20:45:59.000000000 +0200
+++ openswan-2.6.28-new/programs/pluto/ikev1_main.c	2010-09-03 11:38:45.000000000 +0200
@@ -2423,7 +2423,7 @@
     pb_stream pbs, r_hdr_pbs;
     u_char *r_hashval, *r_hash_start;
     static time_t last_malformed;
-    time_t n = time((time_t)NULL);
+    time_t n = time(NULL);
     struct isakmp_hdr hdr;           /* keep it around for TPM */
 
     r_hashval = NULL;
openSUSE Build Service is sponsored by