Don't cast away const qualifier.

svn path=/trunk/; revision=46550
This commit is contained in:
Martin Mathieson 2012-12-16 00:25:25 +00:00
parent b7e64d6571
commit 460d6be1af
3 changed files with 5 additions and 5 deletions

View File

@ -85,7 +85,7 @@ static int
expert_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_,
const void *pointer)
{
expert_info_t *ei = (expert_info_t *)pointer;
const expert_info_t *ei = (const expert_info_t *)pointer;
expert_tapdata_t *data = tapdata;
severity_level_t severity_level;
expert_entry tmp_entry;

View File

@ -160,7 +160,7 @@ mac_lte_stat_reset(void *phs)
/* Allocate a mac_lte_ep_t struct to store info for new UE */
static mac_lte_ep_t* alloc_mac_lte_ep(struct mac_lte_tap_info *si, packet_info *pinfo _U_)
static mac_lte_ep_t* alloc_mac_lte_ep(const struct mac_lte_tap_info *si, packet_info *pinfo _U_)
{
mac_lte_ep_t* ep;
@ -226,7 +226,7 @@ mac_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_,
mac_lte_ep_t *tmp = NULL, *te = NULL;
/* Cast tap info struct */
struct mac_lte_tap_info *si = (struct mac_lte_tap_info *)phi;
const struct mac_lte_tap_info *si = (const struct mac_lte_tap_info *)phi;
if (!hs) {
return 0;

View File

@ -128,7 +128,7 @@ rlc_lte_stat_reset(void *phs)
/* Allocate a rlc_lte_ep_t struct to store info for new UE */
static rlc_lte_ep_t* alloc_rlc_lte_ep(struct rlc_lte_tap_info *si, packet_info *pinfo _U_)
static rlc_lte_ep_t* alloc_rlc_lte_ep(const struct rlc_lte_tap_info *si, packet_info *pinfo _U_)
{
rlc_lte_ep_t* ep;
@ -173,7 +173,7 @@ rlc_lte_stat_packet(void *phs, packet_info *pinfo, epan_dissect_t *edt _U_,
rlc_lte_ep_t *tmp = NULL, *te = NULL;
/* Cast tap info struct */
struct rlc_lte_tap_info *si = (struct rlc_lte_tap_info *)phi;
const struct rlc_lte_tap_info *si = (const struct rlc_lte_tap_info *)phi;
/* Need this */
if (!hs) {