aboutsummaryrefslogtreecommitdiff
path: root/login/logout.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-09-20 20:01:39 +0000
committerRoland McGrath <roland@gnu.org>2002-09-20 20:01:39 +0000
commit51104ec01415a078b6d8ab2717721b578dd5d1b3 (patch)
tree829b7404f689cfbb5d97bf9f4295ed85f8961a52 /login/logout.c
parent2ed4a17c9aba7194dd51c766ea6b0ba781d6ce16 (diff)
downloadglibc-51104ec01415a078b6d8ab2717721b578dd5d1b3.tar
glibc-51104ec01415a078b6d8ab2717721b578dd5d1b3.tar.gz
glibc-51104ec01415a078b6d8ab2717721b578dd5d1b3.tar.bz2
glibc-51104ec01415a078b6d8ab2717721b578dd5d1b3.zip
2002-09-18 Bruno Haible <bruno@clisp.org>
* login/logout.c (logout): Don't assume ut_time has the same size as a time_t. * login/logwtmp.c (logwtmp): Likewise.
Diffstat (limited to 'login/logout.c')
-rw-r--r--login/logout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/login/logout.c b/login/logout.c
index 09a7561801..41c864a0a4 100644
--- a/login/logout.c
+++ b/login/logout.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
@@ -53,7 +53,7 @@ logout (const char *line)
#if _HAVE_UT_TV - 0
gettimeofday (&ut->ut_tv, NULL);
#else
- time (&ut->ut_time);
+ ut->ut_time = time (NULL);
#endif
#if _HAVE_UT_TYPE - 0
ut->ut_type = DEAD_PROCESS;