aboutsummaryrefslogtreecommitdiffstats
path: root/tshark.c
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2007-04-03 21:17:13 +0000
committerStephen Fisher <steve@stephen-fisher.com>2007-04-03 21:17:13 +0000
commit6625e7503ff42d40780a1bf36e8070c02624ba6b (patch)
treec6563c2f2dae079e0be033a6a8fc81221faea4bc /tshark.c
parent8a277a497f8dde4a143d6617b0f669e0ff62b5bf (diff)
Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
Diffstat (limited to 'tshark.c')
-rw-r--r--tshark.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tshark.c b/tshark.c
index fe964fefe2..937b23d394 100644
--- a/tshark.c
+++ b/tshark.c
@@ -2270,7 +2270,8 @@ fill_in_fdata(frame_data *fdata, capture_file *cf,
fdata->cap_len = phdr->caplen;
fdata->file_off = offset;
fdata->lnk_t = phdr->pkt_encap;
- fdata->abs_ts = *((nstime_t *) &phdr->ts);
+ fdata->abs_ts.secs = phdr->ts.secs;
+ fdata->abs_ts.nsecs = phdr->ts.nsecs;
fdata->flags.passed_dfilter = 0;
fdata->flags.encoding = CHAR_ASCII;
fdata->flags.visited = 0;