aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-07-09 01:49:02 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-07-09 01:49:02 +0000
commit1ae38887b67ecf14e4c36ca9817d2941b3b73f7b (patch)
tree920207458218bb459f3c76cf7b07552ffde4bb45 /wiretap
parent0696f30690862679b09ae85a5fc4414d86089630 (diff)
From Evan Huus:
Grab-bag of unused variables. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7452 svn path=/trunk/; revision=43616
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/vwr.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c
index fa318ac53b..30b699c52b 100644
--- a/wiretap/vwr.c
+++ b/wiretap/vwr.c
@@ -808,12 +808,11 @@ static gboolean vwr_seek_read(wtap *wth, gint64 seek_off, union wtap_pseudo_head
static gboolean vwr_read_rec_header(vwr_t *vwr, FILE_T fh, int *rec_size, int *IS_TX, int *err, gchar **err_info)
{
- int bytes_read, file_off;
+ int bytes_read;
int f_len, v_type;
guint8 header[16];
errno = WTAP_ERR_CANT_READ;
- file_off = 0;
*rec_size = 0;
/* read out the file data in 16-byte messages, stopping either after we find a frame, */
@@ -826,8 +825,6 @@ static gboolean vwr_read_rec_header(vwr_t *vwr, FILE_T fh, int *rec_size, int *I
*err = file_error(fh, err_info);
return(FALSE);
}
- else
- file_off += bytes_read;
/* got a header; invoke decode-message function to parse and process it */
/* if the function returns a length, then a frame or variable-length message */
@@ -842,8 +839,6 @@ static gboolean vwr_read_rec_header(vwr_t *vwr, FILE_T fh, int *rec_size, int *I
else if (v_type != VT_FRAME) {
if (file_seek(fh, f_len, SEEK_CUR, err) < 0)
return(FALSE);
- else
- file_off += f_len;
}
else {
*rec_size = f_len;