forked from osmocom/wireshark
Don't cast away const qualifier.
svn path=/trunk/; revision=46550
This commit is contained in:
parent
b7e64d6571
commit
460d6be1af
|
@ -85,7 +85,7 @@ static int
|
||||||
expert_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_,
|
expert_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_,
|
||||||
const void *pointer)
|
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;
|
expert_tapdata_t *data = tapdata;
|
||||||
severity_level_t severity_level;
|
severity_level_t severity_level;
|
||||||
expert_entry tmp_entry;
|
expert_entry tmp_entry;
|
||||||
|
|
|
@ -160,7 +160,7 @@ mac_lte_stat_reset(void *phs)
|
||||||
|
|
||||||
|
|
||||||
/* Allocate a mac_lte_ep_t struct to store info for new UE */
|
/* 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;
|
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;
|
mac_lte_ep_t *tmp = NULL, *te = NULL;
|
||||||
|
|
||||||
/* Cast tap info struct */
|
/* 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) {
|
if (!hs) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -128,7 +128,7 @@ rlc_lte_stat_reset(void *phs)
|
||||||
|
|
||||||
|
|
||||||
/* Allocate a rlc_lte_ep_t struct to store info for new UE */
|
/* 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;
|
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;
|
rlc_lte_ep_t *tmp = NULL, *te = NULL;
|
||||||
|
|
||||||
/* Cast tap info struct */
|
/* 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 */
|
/* Need this */
|
||||||
if (!hs) {
|
if (!hs) {
|
||||||
|
|
Loading…
Reference in New Issue