diff options
author | ed <ed@FreeBSD.org> | 2012-09-01 10:48:38 +0000 |
---|---|---|
committer | ed <ed@FreeBSD.org> | 2012-09-01 10:48:38 +0000 |
commit | ae6b2b1d419f36550398d995ee6bea842b919ff7 (patch) | |
tree | 43cff33e06e5b811ee63fcabb0978b3ed3131617 /usr.sbin/lmcconfig | |
parent | 309cc8502c383ca855609502d31f8399e8ab4206 (diff) | |
download | FreeBSD-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')
-rw-r--r-- | usr.sbin/lmcconfig/lmcconfig.c | 3 |
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) |