summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lmcconfig/lmcconfig.c
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2012-09-01 10:48:38 +0000
committered <ed@FreeBSD.org>2012-09-01 10:48:38 +0000
commitae6b2b1d419f36550398d995ee6bea842b919ff7 (patch)
tree43cff33e06e5b811ee63fcabb0978b3ed3131617 /usr.sbin/lmcconfig/lmcconfig.c
parent309cc8502c383ca855609502d31f8399e8ab4206 (diff)
downloadFreeBSD-src-ae6b2b1d419f36550398d995ee6bea842b919ff7.zip
FreeBSD-src-ae6b2b1d419f36550398d995ee6bea842b919ff7.tar.gz
Remove unneeded struct timezone.
We're only interested in a timestamp -- not the timezone.
Diffstat (limited to 'usr.sbin/lmcconfig/lmcconfig.c')
-rw-r--r--usr.sbin/lmcconfig/lmcconfig.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/lmcconfig/lmcconfig.c b/usr.sbin/lmcconfig/lmcconfig.c
index ece19f7..e820a91 100644
--- a/usr.sbin/lmcconfig/lmcconfig.c
+++ b/usr.sbin/lmcconfig/lmcconfig.c
@@ -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)
OpenPOWER on IntegriCloud