From owner-p4-projects Thu Oct 3 17:16:41 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 89A9037B406; Thu, 3 Oct 2002 17:16:39 -0700 (PDT) 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 4DC7837B404 for ; Thu, 3 Oct 2002 17:16:39 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B7EB43E4A for ; Thu, 3 Oct 2002 17:16:39 -0700 (PDT) (envelope-from peter@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g940GcCo087330 for ; Thu, 3 Oct 2002 17:16:38 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g940Gc7l087327 for perforce@freebsd.org; Thu, 3 Oct 2002 17:16:38 -0700 (PDT) Date: Thu, 3 Oct 2002 17:16:38 -0700 (PDT) Message-Id: <200210040016.g940Gc7l087327@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm Subject: PERFORCE change 18621 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://people.freebsd.org/~peter/p4db/chv.cgi?CH=18621 Change 18621 by peter@peter_daintree on 2002/10/03 17:16:22 do not add extra temp variable usage when we do not have to. Affected files ... .. //depot/projects/ia64/lib/libpam/modules/pam_lastlog/pam_lastlog.c#10 edit Differences ... ==== //depot/projects/ia64/lib/libpam/modules/pam_lastlog/pam_lastlog.c#10 (text+ko) ==== @@ -126,8 +126,7 @@ } bzero(&ll, sizeof(ll)); - time(&t); - ll.ll_time = _time_to_time32(t); + ll.ll_time = _time_to_time32(time(NULL)); /* note: does not need to be NUL-terminated */ strncpy(ll.ll_line, tty, sizeof(ll.ll_line)); @@ -144,8 +143,7 @@ * Record session in utmp(5) and wtmp(5). */ bzero(&utmp, sizeof(utmp)); - time(&t); - utmp.ut_time = _time_to_time32(t); + utmp.ut_time = _time_to_time32(time(NULL)); /* note: does not need to be NUL-terminated */ strncpy(utmp.ut_name, user, sizeof(utmp.ut_name)); if (rhost != NULL) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message