aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/libpcap.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2007-03-21 01:32:50 +0000
committerUlf Lamping <ulf.lamping@web.de>2007-03-21 01:32:50 +0000
commit77ec324774760390a7ba9fc4e864ad0440a0ad2f (patch)
tree558e4c1d59be109228944934621baa1a98824e11 /wiretap/libpcap.c
parent16f4a91dfc8a0558de579afa55aad1f3f3c19236 (diff)
set compiler option "treat warnings as errors" - to prevent new warnings for wiretap
remove all compiler warnings: a) prevent wrong malloc/free definitions by lex/yacc generated files b) add int/time_t casts - MSVC2005 is more "sensitive" about this than MSVC6 svn path=/trunk/; revision=21078
Diffstat (limited to 'wiretap/libpcap.c')
-rw-r--r--wiretap/libpcap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/libpcap.c b/wiretap/libpcap.c
index 66ab588338..61a854587e 100644
--- a/wiretap/libpcap.c
+++ b/wiretap/libpcap.c
@@ -2297,7 +2297,7 @@ static gboolean libpcap_dump(wtap_dumper *wdh,
break;
}
- rec_hdr.hdr.ts_sec = phdr->ts.secs;
+ rec_hdr.hdr.ts_sec = (guint32) phdr->ts.secs;
if(wdh->tsprecision == WTAP_FILE_TSPREC_NSEC) {
rec_hdr.hdr.ts_usec = phdr->ts.nsecs;
} else {