Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Sep 2012 10:48:38 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r239986 - head/usr.sbin/lmcconfig
Message-ID:  <201209011048.q81AmcQ0096175@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209011048.q81AmcQ0096175>