aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2004-10-12 06:32:57 +0000
committerUlf Lamping <ulf.lamping@web.de>2004-10-12 06:32:57 +0000
commit08ba61b48fb21330eb51be71e84c1e7248c2549d (patch)
tree7c4cc80652b6addae86e1fe596772b3c8348f6e7 /wiretap
parentd1a14a64090c5ec8bbc4197bffd02a709341ab4c (diff)
fix MSVC unused magic warning
svn path=/trunk/; revision=12274
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/nettl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/nettl.c b/wiretap/nettl.c
index 9eb2437d04..44876257b8 100644
--- a/wiretap/nettl.c
+++ b/wiretap/nettl.c
@@ -678,7 +678,7 @@ int nettl_dump_can_write_encap(int encap)
sets "*err" to an error code on failure */
gboolean nettl_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err)
{
- guint32 magic;
+ /*guint32 magic;*/
struct nettl_file_hdr file_hdr;
size_t nwritten;
@@ -704,7 +704,7 @@ gboolean nettl_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err)
*err = WTAP_ERR_SHORT_WRITE;
return FALSE;
}
- wdh->bytes_dumped += sizeof magic;
+ wdh->bytes_dumped += sizeof(guint32) /* magic */;
return TRUE;
}