diff options
author | Ulf Lamping <ulf.lamping@web.de> | 2007-03-21 01:32:50 +0000 |
---|---|---|
committer | Ulf Lamping <ulf.lamping@web.de> | 2007-03-21 01:32:50 +0000 |
commit | 77ec324774760390a7ba9fc4e864ad0440a0ad2f (patch) | |
tree | 558e4c1d59be109228944934621baa1a98824e11 /wiretap/lanalyzer.c | |
parent | 16f4a91dfc8a0558de579afa55aad1f3f3c19236 (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/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 */ |