diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-01-18 23:16:10 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-01-18 23:16:10 +0000 |
commit | c5614625ee36aaec31e716a2879a2492984a1fed (patch) | |
tree | dc072ea64d05386e4ee2e0239b9cf90f63272e20 /epan/dissectors/packet-mysql.c | |
parent | f1d4716d18e43916cfa96d1cc3d9832409a3f470 (diff) | |
download | wireshark-c5614625ee36aaec31e716a2879a2492984a1fed.tar.gz wireshark-c5614625ee36aaec31e716a2879a2492984a1fed.tar.bz2 wireshark-c5614625ee36aaec31e716a2879a2492984a1fed.zip |
Fix some gcc -Wshadow warnings ....
svn path=/trunk/; revision=31559
Diffstat (limited to 'epan/dissectors/packet-mysql.c')
-rw-r--r-- | epan/dissectors/packet-mysql.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/epan/dissectors/packet-mysql.c b/epan/dissectors/packet-mysql.c index bbd215a515..e5d9c1e5bc 100644 --- a/epan/dissectors/packet-mysql.c +++ b/epan/dissectors/packet-mysql.c @@ -1141,7 +1141,7 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint64 generation; proto_item *pi; #endif - struct mysql_frame_data *frame_data; + struct mysql_frame_data *mysql_frame_data_p; /* get conversation, create if neccessary*/ conversation= find_conversation(pinfo->fd->num, &pinfo->src, &pinfo->dst, @@ -1169,22 +1169,22 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) conversation_add_proto_data(conversation, proto_mysql, conn_data); } - frame_data = p_get_proto_data(pinfo->fd, proto_mysql); - if (!frame_data) { + mysql_frame_data_p = p_get_proto_data(pinfo->fd, proto_mysql); + if (!mysql_frame_data_p) { /* We haven't seen this frame before. Store the state of the * conversation now so if/when we dissect the frame again * we'll start with the same state. */ - frame_data = se_alloc(sizeof(struct mysql_frame_data)); - frame_data->state = conn_data->state; - p_add_proto_data(pinfo->fd, proto_mysql, frame_data); + mysql_frame_data_p = se_alloc(sizeof(struct mysql_frame_data)); + mysql_frame_data_p->state = conn_data->state; + p_add_proto_data(pinfo->fd, proto_mysql, mysql_frame_data_p); } else { /* We have seen this frame before. Set the connection state * to whatever state it had the first time we saw this frame * (e.g., based on whatever frames came before it). * The state may change as we dissect this packet. */ - conn_data->state= frame_data->state; + conn_data->state= mysql_frame_data_p->state; } if (tree) { @@ -1210,7 +1210,7 @@ dissect_mysql_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) #ifdef CTDEBUG conn_state_in= conn_data->state; - frame_state = frame_data->state; + frame_state = mysql_frame_data_p->state; generation= conn_data->generation; if (tree) { pi= proto_tree_add_text(mysql_tree, tvb, offset, 0, "conversation: %p", conversation); @@ -1581,13 +1581,13 @@ mysql_dissect_request(tvbuff_t *tvb,packet_info *pinfo, int offset, case MYSQL_REFRESH: { - proto_item *tf; + proto_item *tff; proto_item *rfsh_tree; gint refresh= tvb_get_guint8(tvb, offset); if (req_tree) { - tf= proto_tree_add_uint_format(req_tree, hf_mysql_refresh, tvb, offset, 1, refresh, "Refresh Bitmap: 0x%02X ", refresh); - rfsh_tree= proto_item_add_subtree(tf, ett_refresh); + tff= proto_tree_add_uint_format(req_tree, hf_mysql_refresh, tvb, offset, 1, refresh, "Refresh Bitmap: 0x%02X ", refresh); + rfsh_tree= proto_item_add_subtree(tff, ett_refresh); proto_tree_add_boolean(rfsh_tree, hf_mysql_rfsh_grants, tvb, offset, 1, refresh); proto_tree_add_boolean(rfsh_tree, hf_mysql_rfsh_log, tvb, offset, 1, refresh); proto_tree_add_boolean(rfsh_tree, hf_mysql_rfsh_tables, tvb, offset, 1, refresh); |