diff --git a/ui/cli/tap-expert.c b/ui/cli/tap-expert.c index ac68219abd..aaec3eeecb 100644 --- a/ui/cli/tap-expert.c +++ b/ui/cli/tap-expert.c @@ -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; diff --git a/ui/cli/tap-macltestat.c b/ui/cli/tap-macltestat.c index c15066e1a6..1f290484aa 100644 --- a/ui/cli/tap-macltestat.c +++ b/ui/cli/tap-macltestat.c @@ -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; diff --git a/ui/cli/tap-rlcltestat.c b/ui/cli/tap-rlcltestat.c index e6e346ac62..b9a6ec8f8c 100644 --- a/ui/cli/tap-rlcltestat.c +++ b/ui/cli/tap-rlcltestat.c @@ -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) {