From owner-p4-projects Sun Nov 17 13:19:23 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 4B8D237B404; Sun, 17 Nov 2002 13:19:21 -0800 (PST) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D9E7237B401 for ; Sun, 17 Nov 2002 13:19:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 971B743E42 for ; Sun, 17 Nov 2002 13:19:20 -0800 (PST) (envelope-from peter@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id gAHLGVmV022766 for ; Sun, 17 Nov 2002 13:16:31 -0800 (PST) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id gAHLGVeN022762 for perforce@freebsd.org; Sun, 17 Nov 2002 13:16:31 -0800 (PST) Date: Sun, 17 Nov 2002 13:16:31 -0800 (PST) Message-Id: <200211172116.gAHLGVeN022762@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 21184 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 #include #include +#include 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 #include #include +#include /* 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