aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btsdp.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-04-27 17:39:25 +0000
committerBill Meier <wmeier@newsguy.com>2011-04-27 17:39:25 +0000
commit1ab1009cc4ea51a06add3b99596277f942418eb7 (patch)
tree7c2e704758289ee869200015cc4e267d1baa49b5 /epan/dissectors/packet-btsdp.c
parente73a3a0cb59b3f7970eeeafe035de77f017c4e6a (diff)
From Yaniv Kaul:
Some fixes for 'set but not used' errors that GCC 4.6 emits. From me: Do some (minor) indentation cleanup.. svn path=/trunk/; revision=36909
Diffstat (limited to 'epan/dissectors/packet-btsdp.c')
-rw-r--r--epan/dissectors/packet-btsdp.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/epan/dissectors/packet-btsdp.c b/epan/dissectors/packet-btsdp.c
index ec66118bb0..4c5dd3ab7e 100644
--- a/epan/dissectors/packet-btsdp.c
+++ b/epan/dissectors/packet-btsdp.c
@@ -254,7 +254,7 @@ dissect_attribute_id_list(proto_tree *t, tvbuff_t *tvb, int offset, packet_info
static int
dissect_sdp_error_response(proto_tree *t, tvbuff_t *tvb, int offset) {
- proto_tree_add_item(t, hf_error_code, tvb, offset, 2, FALSE);
+ proto_tree_add_item(t, hf_error_code, tvb, offset, 2, FALSE);
offset+=2;
return offset;
@@ -265,11 +265,11 @@ get_sdp_data_element(tvbuff_t *tvb, int offset, guint16 id, guint8 *type, void *
{
int size, start_offset, type_size;
guint8 byte0;
- guint8 size_index;
+ /* guint8 size_index; */
byte0=tvb_get_guint8(tvb, offset);
*type = (byte0>>3) & 0x1f;
- size_index = byte0 & 0x07;
+ /* size_index = byte0 & 0x07; set but not used, so commented out */
/* Initialize the rest of the outputs */
*val = NULL;
@@ -283,7 +283,7 @@ get_sdp_data_element(tvbuff_t *tvb, int offset, guint16 id, guint8 *type, void *
switch (*type) {
case 0: { /* null */
*val = NULL;
- break;
+ break;
}
case 1: /* unsigned integer */
case 2: /* signed integer */
@@ -859,7 +859,7 @@ dissect_btsdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ti;
proto_tree *st;
guint8 pdu;
- guint16 tid, plen, acl_handle;
+ guint16 acl_handle;
guint32 token;
const char *pdu_name;
int offset=0;
@@ -897,12 +897,10 @@ dissect_btsdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
offset++;
/* tid */
- tid = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(st, hf_tid, tvb, offset, 2, FALSE);
offset+=2;
/* plen */
- plen = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(st, hf_plen, tvb, offset, 2, FALSE);
offset+=2;