diff options
author | Guy Harris <guy@alum.mit.edu> | 2014-03-29 16:00:13 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2014-03-29 23:01:58 +0000 |
commit | bda08a2881d64fc41aeacfb98a1dc77ada21ca02 (patch) | |
tree | 73aaef6d515aed7273baa79c2db6234fc7d4f75f /wiretap/vwr.c | |
parent | d156deff0412a16f4a33e4f05d86307fdbca6cd3 (diff) |
Hide unused variable.
Leave it there, but commented out, just in case it *should* be used.
"#if 0" out the code that sets it.
Change-Id: I8802fc416030106d9d8421b0d7b8612597794bab
Reviewed-on: https://code.wireshark.org/review/867
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/vwr.c')
-rw-r--r-- | wiretap/vwr.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/wiretap/vwr.c b/wiretap/vwr.c index d64fa6f186..7d0b291c62 100644 --- a/wiretap/vwr.c +++ b/wiretap/vwr.c @@ -1474,7 +1474,8 @@ static gboolean vwr_read_rec_data_ethernet(vwr_t *vwr, struct wtap_pkthdr *phdr, int f_flow; /* flags: flow valid */ guint32 frame_type; /* frame type field */ int mac_len, sig_off, pay_off; /* MAC header len, signature offset */ - guint64 sig_ts, tsid; /* 32 LSBs of timestamp in signature */ + /* XXX - the code here fetched tsid, but never used it! */ + guint64 sig_ts/*, tsid*/; /* 32 LSBs of timestamp in signature */ guint64 delta_b; /* Used for calculating latency */ guint16 vw_flags; /* VeriWave-specific packet flags */ @@ -1532,9 +1533,11 @@ static gboolean vwr_read_rec_data_ethernet(vwr_t *vwr, struct wtap_pkthdr *phdr, /* 24 LSBs */ flow_id = pntoh24(&s_ptr[vwr->FLOWID_OFF]); +#if 0 /* For tx latency is duration, for rx latency is timestamp. */ /* Get 64-bit latency value. */ tsid = pcorey48tohll(&s_ptr[vwr->LATVAL_OFF]); +#endif l4id = pntoh16(&s_ptr[vwr->L4ID_OFF]); |