From 77ec324774760390a7ba9fc4e864ad0440a0ad2f Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Wed, 21 Mar 2007 01:32:50 +0000 Subject: 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 --- wiretap/libpcap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wiretap/libpcap.c') 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 { -- cgit v1.2.3