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/k12.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/k12.c')
-rw-r--r-- | wiretap/k12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wiretap/k12.c b/wiretap/k12.c index 5ac6daac07..bce0f1a809 100644 --- a/wiretap/k12.c +++ b/wiretap/k12.c @@ -208,7 +208,7 @@ static gint get_record(guint8** bufferp, FILE* fh, gint64 file_offset) { guint8* writep; /* where the next unknown 0x10 bytes are stuffed to the file */ - gint64 junky_offset = 0x2000 - ( (file_offset - 0x200) % 0x2000 ); + gint junky_offset = 0x2000 - (gint) ( (file_offset - 0x200) % 0x2000 ); K12_DBG(6,("get_record: ENTER: junky_offset=%lld, file_offset=%lld",junky_offset,file_offset)); |