diff options
author | Petr Machata <pmachata@redhat.com> | 2012-11-23 19:02:13 +0100 |
---|---|---|
committer | Petr Machata <pmachata@redhat.com> | 2013-03-08 22:55:25 +0100 |
commit | 756422773afa17f39d3296669eb66708557f7d3c (patch) | |
tree | 2aa04e2db61ac9fd9d93a3f477eaeeed020bb136 /output.c | |
parent | 7ac04edc87e07fc68f94274ba3ff0fb2a0a98958 (diff) | |
download | ltrace-756422773afa17f39d3296669eb66708557f7d3c.tar.gz |
Drop obsolete timezone arguments in calls to gettimeofday
Diffstat (limited to 'output.c')
-rw-r--r-- | output.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -77,11 +77,10 @@ begin_of_line(struct process *proc, int is_func, int indent) } if (opt_r) { struct timeval tv; - struct timezone tz; static struct timeval old_tv = { 0, 0 }; struct timeval diff; - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); if (old_tv.tv_sec == 0 && old_tv.tv_usec == 0) { old_tv.tv_sec = tv.tv_sec; @@ -102,9 +101,7 @@ begin_of_line(struct process *proc, int is_func, int indent) } if (opt_t) { struct timeval tv; - struct timezone tz; - - gettimeofday(&tv, &tz); + gettimeofday(&tv, NULL); if (opt_t > 2) { current_column += fprintf(options.output, "%lu.%06d ", (unsigned long)tv.tv_sec, |