From e083cfd1060d5b6dc80fbfd8bbe6798335fe170c Mon Sep 17 00:00:00 2001
Package: inetutils
Version: 1.6.91
From: Guillem Jover <guillem@hadrons.org>
Date: Thu, 3 Dec 2009 21:03:42 +0100
Status: applied
Subject: [PATCH] Use time_t when calling time to fix warning on 64 bit builds

* uucpd/uucpd.c (dologin): New `time_t' variable to use with time(),
copy its contents to `ll.ll_time' afterwards.
---
 uucpd/uucpd.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/uucpd/uucpd.c b/uucpd/uucpd.c
index 34f833b..5388d0f 100644
--- a/uucpd/uucpd.c
+++ b/uucpd/uucpd.c
@@ -277,8 +277,10 @@ dologin (struct passwd *pw, struct sockaddr_in *sin)
   if (f >= 0)
     {
       struct lastlog ll;
+      time_t t;
 
-      time (&ll.ll_time);
+      time (&t);
+      ll.ll_time = t;
       lseek (f, (long) pw->pw_uid * sizeof (struct lastlog), 0);
       strcpy (line, remotehost);
       SCPYN (ll.ll_line, line);
-- 
1.6.5.3

