From 09932ce535a5041d9f3c7f440bef1dfcb77a0000 Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Sun, 4 Oct 2009 18:26:01 +0000 Subject: Constify wimax_mac_calc_crc8() svn path=/trunk/; revision=30314 --- plugins/wimax/crc.c | 2 +- plugins/wimax/crc.h | 2 +- plugins/wimax/wimax_pdu_decoder.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/wimax') diff --git a/plugins/wimax/crc.c b/plugins/wimax/crc.c index 0273371030..35a03a524b 100644 --- a/plugins/wimax/crc.c +++ b/plugins/wimax/crc.c @@ -186,7 +186,7 @@ guint16 wimax_mac_calc_crc16(const guint8 *data, guint data_len) SIDE EFFECTS: */ -guint8 wimax_mac_calc_crc8(guint8 *data, guint data_len) +guint8 wimax_mac_calc_crc8(const guint8 *data, guint data_len) { guint8 crc=0; guint i; diff --git a/plugins/wimax/crc.h b/plugins/wimax/crc.h index 2e8f789f5a..011239f079 100644 --- a/plugins/wimax/crc.h +++ b/plugins/wimax/crc.h @@ -42,6 +42,6 @@ void wimax_mac_gen_crc8_table(void); guint32 wimax_mac_calc_crc32(const guint8 *data, guint data_len); guint16 wimax_mac_calc_crc16(const guint8 *data, guint data_len); -guint8 wimax_mac_calc_crc8 (guint8 *data, guint data_len); +guint8 wimax_mac_calc_crc8(const guint8 *data, guint data_len); #endif /* CRC_H */ diff --git a/plugins/wimax/wimax_pdu_decoder.c b/plugins/wimax/wimax_pdu_decoder.c index f04e0fc9af..b60fd927cb 100644 --- a/plugins/wimax/wimax_pdu_decoder.c +++ b/plugins/wimax/wimax_pdu_decoder.c @@ -160,7 +160,7 @@ static void dissect_wimax_pdu_decoder(tvbuff_t *tvb, packet_info *pinfo, proto_t break; } /* calculate the MAC header HCS */ - mac_hcs_calculated = wimax_mac_calc_crc8((guint8 *)tvb_get_ptr(tvb, offset, WIMAX_MAC_HEADER_INFO_FIELDS), WIMAX_MAC_HEADER_INFO_FIELDS); + mac_hcs_calculated = wimax_mac_calc_crc8(tvb_get_ptr(tvb, offset, WIMAX_MAC_HEADER_INFO_FIELDS), WIMAX_MAC_HEADER_INFO_FIELDS); /* get the Header Check Sequence (HCS) in the header */ mac_hcs = tvb_get_guint8(tvb, offset + WIMAX_MAC_HEADER_SIZE - 1); /* verify the HCS */ -- cgit v1.2.3