aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-coap.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-10-27 15:59:12 +0000
committerBill Meier <wmeier@newsguy.com>2011-10-27 15:59:12 +0000
commit20e3e0b5b5cf4f20c625b6ba512f235c442b57c4 (patch)
tree69a848ceb7ebb4598141e92beeef7245e0abef24 /epan/dissectors/packet-coap.c
parent2c2fb429f791407cdc8364253a25c6729a031d9e (diff)
Fix some proto_tree_add_item() encoding args;
In some files: Remove a few unneeded #includes; Do some whitespace/indentation cleanup svn path=/trunk/; revision=39635
Diffstat (limited to 'epan/dissectors/packet-coap.c')
-rw-r--r--epan/dissectors/packet-coap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-coap.c b/epan/dissectors/packet-coap.c
index 31c3306f82..7cc1ddff73 100644
--- a/epan/dissectors/packet-coap.c
+++ b/epan/dissectors/packet-coap.c
@@ -248,7 +248,7 @@ dissect_coap_opt_ctype(tvbuff_t *tvb, packet_info *pinfo, proto_tree *subtree, g
coap_content_type_value = (gint)opt_ctype;
coap_content_type = val_to_str(opt_ctype, vals_ctype, "Unknown %d");
- proto_tree_add_item(subtree, hfindex, tvb, offset, 1, FALSE);
+ proto_tree_add_item(subtree, hfindex, tvb, offset, 1, ENC_BIG_ENDIAN);
}
static void
@@ -261,7 +261,7 @@ dissect_coap_opt_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *subtree, gi
return;
}
- item = proto_tree_add_item(subtree, hfindex, tvb, offset, opt_length, FALSE);
+ item = proto_tree_add_item(subtree, hfindex, tvb, offset, opt_length, ENC_BIG_ENDIAN);
proto_item_append_text(item, " (s)");
return;
@@ -295,7 +295,7 @@ dissect_coap_opt_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *subtree, g
block_mflag = val & 0x08;
proto_tree_add_int(subtree, hf_coap_opt_block_number, tvb, offset, opt_length, block_number);
- proto_tree_add_item(subtree, hfindex, tvb, offset + opt_length - 1, 1, FALSE);
+ proto_tree_add_item(subtree, hfindex, tvb, offset + opt_length - 1, 1, ENC_BIG_ENDIAN);
block_size = 1 << (encoded_block_size + 4);
item = proto_tree_add_item(subtree, hf_coap_opt_block_size, tvb, offset + opt_length - 1, 1, ENC_BIG_ENDIAN);
@@ -325,7 +325,7 @@ dissect_coap_opt_port(tvbuff_t *tvb, packet_info *pinfo, proto_tree *subtree, gi
expert_add_info_format(pinfo, subtree, PI_MALFORMED, PI_WARN, "Invalid Option Length: %d", opt_length);
return;
}
- (void)proto_tree_add_item(subtree, hfindex, tvb, offset, opt_length, FALSE);
+ (void)proto_tree_add_item(subtree, hfindex, tvb, offset, opt_length, ENC_BIG_ENDIAN);
/* forming a uri-string */
if (uri_string[0] == '\0')