From 21fe0af7aaca9ffe690669fdde507ace25bff8bd Mon Sep 17 00:00:00 2001 From: Ed Schouten Date: Sat, 1 Sep 2012 10:48:38 +0000 Subject: [PATCH] Remove unneeded struct timezone. We're only interested in a timestamp -- not the timezone. --- usr.sbin/lmcconfig/lmcconfig.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/lmcconfig/lmcconfig.c b/usr.sbin/lmcconfig/lmcconfig.c index ece19f75aa61..e820a9177021 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)