diff options
author | Pascal Quantin <pascal.quantin@gmail.com> | 2014-05-04 22:24:33 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-05-04 21:08:31 +0000 |
commit | 6c7ab457ea526fac427b6a8fbfd6f98f9bd1b537 (patch) | |
tree | 38345217544e1934664340e92b565279265382f9 /epan/dissectors/packet-mac-lte.c | |
parent | 1d1730fc5625ae9c945a43e5909ebb18193ffb42 (diff) |
MAC LTE: fix compilation error
error: assignment discards 'const' qualifier from pointer target type [-Werror]
also add the missing definition of hf_mac_lte_bsr_size_median
Change-Id: I31e172a16b4afd59ba8cf5a9b281bbeaf15b6c56
Reviewed-on: https://code.wireshark.org/review/1492
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-mac-lte.c')
-rw-r--r-- | epan/dissectors/packet-mac-lte.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mac-lte.c b/epan/dissectors/packet-mac-lte.c index 8b66e33303..98a95d9a12 100644 --- a/epan/dissectors/packet-mac-lte.c +++ b/epan/dissectors/packet-mac-lte.c @@ -1865,7 +1865,7 @@ static guint s_rapid_ranges_RA; /* Return TRUE if we have been configured. Set out parameter to point at a literal string tha may be safely referenced afterwards */ -static gboolean get_mac_lte_rapid_description(guint8 rapid, gchar **description) +static gboolean get_mac_lte_rapid_description(guint8 rapid, const gchar **description) { if (!s_rapid_ranges_configured) { return FALSE; @@ -2383,7 +2383,7 @@ static gint dissect_rar_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre guint16 timing_advance; guint32 ul_grant; guint16 temp_crnti; - gchar *rapid_description; + const gchar *rapid_description; gboolean rapid_description_found; /* Create tree for this Body */ @@ -2560,7 +2560,7 @@ static void dissect_rar(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, pro else { /* RAPID case */ /* TODO: complain if the same RAPID appears twice in same frame? */ - gchar *rapid_description; + const gchar *rapid_description; gboolean rapid_description_found; rapids[number_of_rars] = tvb_get_guint8(tvb, offset) & 0x3f; @@ -5177,7 +5177,7 @@ int dissect_mac_lte(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* d if (p_mac_lte_info->length == 0) { proto_item *preamble_ti; proto_tree *preamble_tree; - gchar *rapid_description; + const gchar *rapid_description; gboolean rapid_description_found; switch (p_mac_lte_info->oob_event) { @@ -6483,6 +6483,12 @@ void proto_register_mac_lte(void) "Buffer Size available in logical channel group 3", HFILL } }, + { &hf_mac_lte_bsr_size_median, + { "Buffer Size Median", + "mac-lte.control.bsr.buffer-size-median", FT_UINT8, BASE_DEC, 0, 0x0, + NULL, HFILL + } + }, { &hf_mac_lte_control_crnti, { "C-RNTI", "mac-lte.control.crnti", FT_UINT16, BASE_DEC, 0, 0x0, |