aboutsummaryrefslogtreecommitdiff
path: root/output.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-11-23 19:02:13 +0100
committerPetr Machata <pmachata@redhat.com>2013-03-08 22:55:25 +0100
commit756422773afa17f39d3296669eb66708557f7d3c (patch)
tree2aa04e2db61ac9fd9d93a3f477eaeeed020bb136 /output.c
parent7ac04edc87e07fc68f94274ba3ff0fb2a0a98958 (diff)
downloadltrace-756422773afa17f39d3296669eb66708557f7d3c.tar.gz
Drop obsolete timezone arguments in calls to gettimeofday
Diffstat (limited to 'output.c')
-rw-r--r--output.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/output.c b/output.c
index 6f6b577..212660f 100644
--- a/output.c
+++ b/output.c
@@ -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,