diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2007-04-03 21:17:13 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2007-04-03 21:17:13 +0000 |
commit | 6625e7503ff42d40780a1bf36e8070c02624ba6b (patch) | |
tree | c6563c2f2dae079e0be033a6a8fc81221faea4bc /file.c | |
parent | 8a277a497f8dde4a143d6617b0f669e0ff62b5bf (diff) | |
download | wireshark-6625e7503ff42d40780a1bf36e8070c02624ba6b.tar.gz |
Fix warnings on Linux/gcc 4.1.1
svn path=/trunk/; revision=21330
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1058,7 +1058,9 @@ read_packet(capture_file *cf, dfilter_t *dfcode, gint64 offset) fdata->flags.ref_time = 0; fdata->color_filter = NULL; - fdata->abs_ts = *((nstime_t *) &phdr->ts); + fdata->abs_ts.secs = phdr->ts.secs; + fdata->abs_ts.nsecs = phdr->ts.nsecs; + if (cf->plist_end != NULL) nstime_delta(&fdata->del_cap_ts, &fdata->abs_ts, &cf->plist_end->abs_ts); else @@ -3324,7 +3326,8 @@ save_packet(capture_file *cf _U_, frame_data *fdata, int err; /* init the wtap header for saving */ - hdr.ts = *(struct wtap_nstime *) &fdata->abs_ts; + hdr.ts.secs = fdata->abs_ts.secs; + hdr.ts.nsecs = fdata->abs_ts.nsecs; hdr.caplen = fdata->cap_len; hdr.len = fdata->pkt_len; hdr.pkt_encap = fdata->lnk_t; |