summaryrefslogtreecommitdiff
path: root/ui/cli/tap-iostat.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2013-07-11 09:51:30 +0000
committerGuy Harris <guy@alum.mit.edu>2013-07-11 09:51:30 +0000
commit359fb8402332be5a2686829676f65cbfcd107b8d (patch)
tree1f3f0e93a0faba6cfc8d1512bfef531dc337ee65 /ui/cli/tap-iostat.c
parent2009a087066ffedb6f79cd288ca45c33db7ce9ab (diff)
downloadwireshark-359fb8402332be5a2686829676f65cbfcd107b8d.tar.gz
Throw in a cast to squelch warnings about a value not fitting in a
time_t. (That also lets us not care how big a time_t is, except that we have a not-fixable Y2.038K problem with 32-bit time_t, about which we merely warn in a comment.) svn path=/trunk/; revision=50502
Diffstat (limited to 'ui/cli/tap-iostat.c')
-rw-r--r--ui/cli/tap-iostat.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/cli/tap-iostat.c b/ui/cli/tap-iostat.c
index 61f6122648..e1904da766 100644
--- a/ui/cli/tap-iostat.c
+++ b/ui/cli/tap-iostat.c
@@ -961,10 +961,8 @@ iostat_draw(void *arg)
}
/* Patch for Absolute Time */
- if (sizeof(time_t) == 8)
- the_time = iot->start_time + (t/1000000ULL);
- else
- the_time = iot->start_time + (guint32)(t/1000000ULL);
+ /* XXX - has a Y2.038K problem with 32-bit time_t */
+ the_time = (time_t)(iot->start_time + (t/1000000ULL));
tm_time = localtime(&the_time);
/* Display the interval for this row */