diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-14 08:22:16 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2011-10-14 08:22:16 +0000 |
commit | 967b9086aac748b1a8d8dbd8c6e9e5a3f184793b (patch) | |
tree | b774319aa464295ca33415bfaf181e9722b80e99 | |
parent | 180a4725d248ba70db426e8326ca61cd64e74f31 (diff) |
Removed newencap as it's unused.
svn path=/trunk/; revision=39419
-rw-r--r-- | wiretap/erf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wiretap/erf.c b/wiretap/erf.c index 2a87878c6f..191b52817a 100644 --- a/wiretap/erf.c +++ b/wiretap/erf.c @@ -558,7 +558,6 @@ static gboolean erf_dump( int *err) { union wtap_pseudo_header other_phdr; - int newencap = -1; int encap; gint64 alignbytes = 0; int i; @@ -591,7 +590,7 @@ static gboolean erf_dump( /*generate a fake header in other_phdr using data that we know*/ /*covert time erf timestamp format*/ other_phdr.erf.phdr.ts = ((guint64) phdr->ts.secs << 32) + (((guint64) phdr->ts.nsecs <<32) / 1000 / 1000 / 1000); - newencap = other_phdr.erf.phdr.type = wtap_wtap_encap_to_erf_encap(encap); + other_phdr.erf.phdr.type = wtap_wtap_encap_to_erf_encap(encap); other_phdr.erf.phdr.flags = 0x4; /*vlen flag set because we're creating variable length records*/ other_phdr.erf.phdr.lctr = 0; /*now we work out rlen, accounting for all the different headers and missing fcs(eth)*/ |