[strongSwan-dev] [PATCH] Corrected a time_t pointer cast reported by rpmlint
Marius Tomaschewski
mt at suse.de
Wed Mar 3 16:10:42 CET 2010
---
src/pluto/timer.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/pluto/timer.c b/src/pluto/timer.c
index 74806a4..7dfa258 100644
--- a/src/pluto/timer.c
+++ b/src/pluto/timer.c
@@ -48,7 +48,7 @@ time_t now(void)
{
static time_t delta = 0
, last_time = 0;
- time_t n = time((time_t)NULL);
+ time_t n = time((time_t *)NULL);
passert(n != (time_t)-1);
if (last_time > n)
--
1.6.4.2
==
Gruesse / Regards,
Marius Tomaschewski <mt at suse.de> <mt at novell.com>
--
Server Technologies Team, SUSE LINUX Products GmbH,
Nuernberg; GF: Markus Rex; HRB 16746 (AG Nuernberg)
GPG/PGP public key fingerprint:
DF17 271A AD15 006A 5BB9 6C96 CA2F F3F7 373A 1CC0
More information about the Dev
mailing list