[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-inetutils] [PATCH] Use time_t with time() to fix warning on 64 bit
From: |
Guillem Jover |
Subject: |
[bug-inetutils] [PATCH] Use time_t with time() to fix warning on 64 bit builds |
Date: |
Thu, 3 Dec 2009 21:10:08 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
* 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [bug-inetutils] [PATCH] Use time_t with time() to fix warning on 64 bit builds,
Guillem Jover <=