diff options
author | Evan Huus <eapache@gmail.com> | 2013-12-19 15:49:09 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2013-12-19 15:49:09 +0000 |
commit | a6415ece0ad102d30ac5dce59b127bcf1bd6d3f1 (patch) | |
tree | 0eff98882fe8c8a9db6f064b87330b8060fe37b2 /epan/dissectors/packet-q931.c | |
parent | b7ab4db2108fda5a1370b807d1b03ad93b1ca8f8 (diff) |
Rename a couple of to_str functions to have ep_ in the name. This makes it
obvious that the returned string is ephemeral, and opens up the original names
in the API for versions that take a wmem pool (and thus can work in any scope).
svn path=/trunk/; revision=54249
Diffstat (limited to 'epan/dissectors/packet-q931.c')
-rw-r--r-- | epan/dissectors/packet-q931.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/epan/dissectors/packet-q931.c b/epan/dissectors/packet-q931.c index b13f9863cc..61bf34c291 100644 --- a/epan/dissectors/packet-q931.c +++ b/epan/dissectors/packet-q931.c @@ -778,7 +778,7 @@ dissect_q931_bearer_capability_ie(tvbuff_t *tvb, int offset, int len, */ proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); proto_tree_add_boolean(tree, hf_q931_extension_ind, tvb, offset, 1, octet); proto_tree_add_uint(tree, hf_q931_coding_standard, tvb, offset, 1, octet); return; @@ -1277,7 +1277,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len, proto_tree_add_uint(tree, hf_q931_coding_standard, tvb, offset, 1, octet); proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); return; } proto_tree_add_uint(tree, hf_q931_cause_location, tvb, offset, 1, octet); @@ -1354,7 +1354,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len, case Q931_REJ_USER_SPECIFIC: proto_tree_add_text(tree, tvb, offset, len, "User specific diagnostic: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); break; case Q931_REJ_IE_MISSING: @@ -1374,7 +1374,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len, default: proto_tree_add_text(tree, tvb, offset, len, "Diagnostic: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); break; } break; @@ -1412,7 +1412,7 @@ dissect_q931_cause_ie_unsafe(tvbuff_t *tvb, int offset, int len, default: proto_tree_add_text(tree, tvb, offset, len, "Diagnostics: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); } } @@ -1499,7 +1499,7 @@ dissect_q931_call_state_ie(tvbuff_t *tvb, int offset, int len, */ proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); return; } proto_tree_add_text(tree, tvb, offset, 1, @@ -1601,7 +1601,7 @@ dissect_q931_channel_identification_ie(tvbuff_t *tvb, int offset, int len, */ proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); return; } proto_tree_add_item(tree, hf_q931_channel_map, tvb, offset, 1, ENC_BIG_ENDIAN); @@ -1669,7 +1669,7 @@ dissect_q931_progress_indicator_ie(tvbuff_t *tvb, int offset, int len, */ proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); return; } proto_tree_add_text(tree, tvb, offset, 1, @@ -1759,7 +1759,7 @@ dissect_q931_ns_facilities_ie(tvbuff_t *tvb, int offset, int len, return; proto_tree_add_text(tree, tvb, offset, len, "Network-specific facility specification: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); } /* @@ -2297,7 +2297,7 @@ dissect_q931_party_subaddr_ie(tvbuff_t *tvb, int offset, int len, if (len == 0) return; proto_tree_add_text(tree, tvb, offset, len, "Subaddress: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); } /* @@ -2428,7 +2428,7 @@ dissect_q931_high_layer_compat_ie(tvbuff_t *tvb, int offset, int len, */ proto_tree_add_text(tree, tvb, offset, len, "Data: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); return; } if (len == 0) @@ -2517,7 +2517,7 @@ dissect_q931_user_user_ie(tvbuff_t *tvb, packet_info *pinfo, int offset, int len default: proto_tree_add_text(tree, tvb, offset, len, "User information: %s", - tvb_bytes_to_str(tvb, offset, len)); + tvb_bytes_to_ep_str(tvb, offset, len)); break; } } @@ -2905,7 +2905,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree_add_text(ie_tree, tvb, offset + 4, info_element_len - 1, "User information: %s", - tvb_bytes_to_str(tvb, offset + 4, + tvb_bytes_to_ep_str(tvb, offset + 4, info_element_len - 1)); } } @@ -3212,7 +3212,7 @@ dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree_add_text(ie_tree, tvb, offset + 2, info_element_len, "Data: %s", - tvb_bytes_to_str(tvb, offset + 2, + tvb_bytes_to_ep_str(tvb, offset + 2, info_element_len)); } break; |