Date: Sun, 17 Nov 2002 13:16:31 -0800 (PST) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 21184 for review Message-ID: <200211172116.gAHLGVeN022762@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21184 Change 21184 by peter@peter_precision on 2002/11/17 13:16:07 Argh, I forgot these. :-( Affected files ... .. //depot/projects/ia64/lib/libutil/logout.c#2 edit .. //depot/projects/ia64/lib/libutil/logwtmp.c#3 edit Differences ... ==== //depot/projects/ia64/lib/libutil/logout.c#2 (text+ko) ==== @@ -49,6 +49,7 @@ #include <stdlib.h> #include <string.h> #include <libutil.h> +#include <timeconv.h> typedef struct utmp UTMP; @@ -68,7 +69,7 @@ continue; bzero(ut.ut_name, UT_NAMESIZE); bzero(ut.ut_host, UT_HOSTSIZE); - (void)time(&ut.ut_time); + ut.ut_time = _time_to_time32(time(NULL)); (void)lseek(fd, -(off_t)sizeof(UTMP), L_INCR); (void)write(fd, &ut, sizeof(UTMP)); rval = 1; ==== //depot/projects/ia64/lib/libutil/logwtmp.c#3 (text+ko) ==== @@ -52,6 +52,7 @@ #include <time.h> #include <unistd.h> #include <utmp.h> +#include <timeconv.h> /* wrapper for KAME-special getnameinfo() */ #ifndef NI_WITHSCOPEID @@ -102,7 +103,7 @@ (void) strncpy(ut.ut_line, line, sizeof(ut.ut_line)); (void) strncpy(ut.ut_name, name, sizeof(ut.ut_name)); (void) strncpy(ut.ut_host, host, sizeof(ut.ut_host)); - (void) time(&ut.ut_time); + ut.ut_time = _time_to_time32(time(NULL)); if (write(fd, (char *)&ut, sizeof(struct utmp)) != sizeof(struct utmp)) (void) ftruncate(fd, buf.st_size); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200211172116.gAHLGVeN022762>