Remove unneeded struct timezone.
We're only interested in a timestamp -- not the timezone.
This commit is contained in:
parent
4a8914c627
commit
21fe0af7aa
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=239986
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user