svn commit: r239986 - head/usr.sbin/lmcconfig
Ed Schouten
ed at FreeBSD.org
Sat Sep 1 10:48:38 UTC 2012
Author: ed
Date: Sat Sep 1 10:48:38 2012
New Revision: 239986
URL: http://svn.freebsd.org/changeset/base/239986
Log:
Remove unneeded struct timezone.
We're only interested in a timestamp -- not the timezone.
Modified:
head/usr.sbin/lmcconfig/lmcconfig.c
Modified: head/usr.sbin/lmcconfig/lmcconfig.c
==============================================================================
--- head/usr.sbin/lmcconfig/lmcconfig.c Sat Sep 1 10:39:01 2012 (r239985)
+++ head/usr.sbin/lmcconfig/lmcconfig.c Sat Sep 1 10:48:38 2012 (r239986)
@@ -1076,9 +1076,8 @@ print_events(void)
{
char *time;
struct timeval tv;
- struct timezone tz;
- gettimeofday(&tv, &tz);
+ gettimeofday(&tv, NULL);
time = (char *)ctime((time_t *)&tv);
printf("Current time:\t\t%s", time);
if (status.cntrs.reset_time.tv_sec < 1000)
More information about the svn-src-head
mailing list