Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 14:30:06 -0800 (PST)
From:      Peter Wemm <peter@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 21049 for review
Message-ID:  <200211132230.gADMU6wa075082@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=21049

Change 21049 by peter@peter_daintree on 2002/11/13 14:29:17

	less unportable.  The whole utmp/wtmp thing needs a proper API
	anyway.

Affected files ...

.. //depot/projects/ia64/usr.sbin/ppp/physical.c#9 edit
.. //depot/projects/ia64/usr.sbin/pppd/auth.c#4 edit

Differences ...

==== //depot/projects/ia64/usr.sbin/ppp/physical.c#9 (text+ko) ====

@@ -45,11 +45,6 @@
 #else
 #include <libutil.h>
 #endif
-#if defined(__FreeBSD__)
-#include <timeconv.h>
-#else
-#define _time_to_time32(t) (t)
-#endif
 
 #include "layer.h"
 #ifndef NONAT
@@ -921,7 +916,7 @@
     char *colon;
 
     memset(&ut, 0, sizeof ut);
-    ut.ut_time = _time_to_time32(time(NULL));
+    ut.ut_time = time(NULL);
     strncpy(ut.ut_name, name, sizeof ut.ut_name);
     if (p->handler && (p->handler->type == TCP_DEVICE ||
                        p->handler->type == UDP_DEVICE)) {

==== //depot/projects/ia64/usr.sbin/pppd/auth.c#4 (text+ko) ====

@@ -49,7 +49,6 @@
 #include <sys/socket.h>
 #include <utmp.h>
 #include <fcntl.h>
-#include <timeconv.h>
 #if defined(_PATH_LASTLOG) && defined(_linux_)
 #include <lastlog.h>
 #endif
@@ -996,7 +995,7 @@
 #endif
 
     memset((void *)&utmp, 0, sizeof(utmp));
-    utmp.ut_time = _time_to_time32(time(NULL));
+    utmp.ut_time = time(NULL);
     (void)strncpy(utmp.ut_name, user, sizeof(utmp.ut_name));
     (void)strncpy(utmp.ut_host, ":PPP", sizeof(utmp.ut_host));
     (void)strncpy(utmp.ut_line, tty, sizeof(utmp.ut_line));

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?200211132230.gADMU6wa075082>