Date: Mon, 26 Aug 2002 16:49:29 -0700 (PDT) From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 16618 for review Message-ID: <200208262349.g7QNnTZn049968@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=16618 Change 16618 by peter@peter_daintree on 2002/08/26 16:49:19 Stop abusing utmp.ut_time Affected files ... .. //depot/projects/ia64/usr.sbin/ppp/physical.c#7 edit Differences ... ==== //depot/projects/ia64/usr.sbin/ppp/physical.c#7 (text+ko) ==== @@ -44,6 +44,11 @@ #else #include <libutil.h> #endif +#if defined(__FreeBSD__) +#include <timeconv.h> +#else +#define _time_to_time32(t) (t) +#endif #include "layer.h" #ifndef NONAT @@ -915,7 +920,7 @@ char *colon; memset(&ut, 0, sizeof ut); - time(&ut.ut_time); + ut.ut_time = _time_to_time32(time(NULL)); strncpy(ut.ut_name, name, sizeof ut.ut_name); if (p->handler && (p->handler->type == TCP_DEVICE || p->handler->type == UDP_DEVICE)) { 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?200208262349.g7QNnTZn049968>