diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-21 02:10:19 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-10-21 02:10:19 +0000 |
commit | 06b82a395a87dfcf4139fb44caeb9f4952f56b6d (patch) | |
tree | a955184a13d8444bdec0de9200f261c46cfa2734 /epan/dissectors/packet-umts_fp.c | |
parent | 75cdd631a75832f542fe2b02ea6a469fdfcffa8a (diff) |
For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
Also: remove trailing whitespace for a number of files.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-umts_fp.c')
-rw-r--r-- | epan/dissectors/packet-umts_fp.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c index d6a412c6e4..230ed444e0 100644 --- a/epan/dissectors/packet-umts_fp.c +++ b/epan/dissectors/packet-umts_fp.c @@ -386,7 +386,7 @@ static const value_string dch_control_frame_type_vals[] = { #define COMMON_TIMING_ADJUSTMENT 2 #define COMMON_DL_SYNCHRONISATION 3 #define COMMON_UL_SYNCHRONISATION 4 - + #define COMMON_DL_NODE_SYNCHRONISATION 6 #define COMMON_UL_NODE_SYNCHRONISATION 7 #define COMMON_DYNAMIC_PUSCH_ASSIGNMENT 8 @@ -1394,7 +1394,7 @@ static void dissect_rach_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_t ext_rx_sync_ul_timing_deviation_present = TRUE; proto_tree_add_item(new_ie_flags_tree, hf_fp_rach_ext_rx_sync_ul_timing_deviation_present, tvb, offset, 1, ENC_BIG_ENDIAN); - + break; default: /* Not defined */ @@ -1466,7 +1466,7 @@ static void dissect_rach_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_t case Division_TDD_768: bits_to_extend = 2; break; - + default: /* TODO: report unexpected division type */ bits_to_extend = 1; @@ -2569,7 +2569,7 @@ static void dissect_e_dch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_ maces_tree = proto_item_add_subtree(ti, ett_fp_edch_maces); } for (macd_idx = 0; macd_idx < subframes[n].number_of_mac_d_pdus[i]; macd_idx++) { - + if (preferences_call_mac_dissectors) { tvbuff_t *next_tvb; pinfo->fd->subnum = macd_idx; /* set subframe number to current TB */ @@ -2802,7 +2802,7 @@ static void dissect_e_dch_t2_or_common_channel_info(tvbuff_t *tvb, packet_info * proto_item *macis_pdu_ti; proto_tree *macis_pdu_tree; - + /* Add subframe header subtree */ macis_pdu_ti = proto_tree_add_string_format(tree, hf_fp_edch_subframe_header, tvb, offset, 0, "", "MAC-is PDU (SFN=%u PDU %u)", @@ -3199,7 +3199,7 @@ static gboolean heur_dissect_fp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t if (!p_fp_info->srcport || !p_fp_info->destport) { p_fp_info->srcport = pinfo->srcport; p_fp_info->destport = pinfo->destport; - } + } /* discriminate 'lower' UDP layer from 'user data' UDP layer * (i.e. if an FP over UDP packet contains a user UDP packet */ @@ -3226,7 +3226,7 @@ void dissect_fp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) col_set_str(pinfo->cinfo, COL_PROTOCOL, "FP"); /* Create fp tree. */ - ti = proto_tree_add_item(tree, proto_fp, tvb, offset, -1, ENC_BIG_ENDIAN); + ti = proto_tree_add_item(tree, proto_fp, tvb, offset, -1, ENC_NA); fp_tree = proto_item_add_subtree(ti, ett_fp); top_level_tree = tree; |