aboutsummaryrefslogtreecommitdiffstats
path: root/packet-radiotap.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-01 04:29:07 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-01 04:29:07 +0000
commit31975eaf03e4d6dc4142a5989c0b1100f4821cd8 (patch)
tree85c14b924fc2bc5fc49908bb24e135e8b2035675 /packet-radiotap.c
parentdfb236138475998eaa3e3f50939ccafa03848129 (diff)
Add consts to avoid 'cast discards qualifiers from pointer target type'
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@9935 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-radiotap.c')
-rw-r--r--packet-radiotap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-radiotap.c b/packet-radiotap.c
index c7b3d2cc05..aaa252090f 100644
--- a/packet-radiotap.c
+++ b/packet-radiotap.c
@@ -2,7 +2,7 @@
* packet-radiotap.c
* Decode packets with a Radiotap header
*
- * $Id: packet-radiotap.c,v 1.2 2004/02/01 04:20:10 jmayer Exp $
+ * $Id: packet-radiotap.c,v 1.3 2004/02/01 04:29:07 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -145,13 +145,13 @@ dissect_radiotap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree);
void
capture_radiotap(const guchar *pd, int offset, int len, packet_counts *ld)
{
- struct ieee80211_radiotap_header *hdr;
+ const struct ieee80211_radiotap_header *hdr;
if(!BYTES_ARE_IN_FRAME(offset, len, (int)sizeof(*hdr))) {
ld->other ++;
return;
}
- hdr = (struct ieee80211_radiotap_header *)pd;
+ hdr = (const struct ieee80211_radiotap_header *)pd;
if(!BYTES_ARE_IN_FRAME(offset, len, hdr->it_len)) {
ld->other ++;
return;