diff options
author | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-21 01:32:50 +0000 |
---|---|---|
committer | ulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-03-21 01:32:50 +0000 |
commit | 5e40053d8f6b1644d3f2386eef81ab812666f31d (patch) | |
tree | 558e4c1d59be109228944934621baa1a98824e11 /wiretap/lanalyzer.c | |
parent | 082b378c47df3a1a1381c45fdbc79e3fd650d5f6 (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
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21078 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/lanalyzer.c')
-rw-r--r-- | wiretap/lanalyzer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/lanalyzer.c b/wiretap/lanalyzer.c index c0a16ab980..a70dc24427 100644 --- a/wiretap/lanalyzer.c +++ b/wiretap/lanalyzer.c @@ -576,7 +576,7 @@ static gboolean lanalyzer_dump(wtap_dumper *wdh, if (*err) return FALSE; - tv.tv_sec = phdr->ts.secs; + tv.tv_sec = (long int) phdr->ts.secs; tv.tv_usec = phdr->ts.nsecs / 1000; if (!itmp->init) { @@ -714,7 +714,7 @@ gboolean lanalyzer_dump_open(wtap_dumper *wdh, gboolean cant_seek, int *err) static gboolean lanalyzer_dump_header(wtap_dumper *wdh, int *err) { LA_TmpInfo *itmp = (LA_TmpInfo*)(wdh->dump.opaque); - struct tm *fT = localtime(&(itmp->start.tv_sec)); + struct tm *fT = localtime( (time_t *) &(itmp->start.tv_sec)); guint16 board_type = itmp->encap == WTAP_ENCAP_TOKEN_RING ? BOARD_325TR /* LANalyzer Board Type */ : BOARD_325; /* LANalyzer Board Type */ |