From bda08a2881d64fc41aeacfb98a1dc77ada21ca02 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 29 Mar 2014 16:00:13 -0700 Subject: 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 --- wiretap/vwr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'wiretap') 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]); -- cgit v1.2.3