aboutsummaryrefslogtreecommitdiffstats
path: root/epan
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-12-31 03:17:00 +0000
committerGuy Harris <guy@alum.mit.edu>2004-12-31 03:17:00 +0000
commit1d4bf3263b6a8041a2b714c1babf38964f970e0f (patch)
tree6fb84bb097d7541fc51f70968810c538a807f65d /epan
parent018883dea94b8a05941b334ef94939c5564a107f (diff)
Don't assign const pointers to non-const pointers, especially if the
object pointed to by the non-const pointer won't be modified. svn path=/trunk/; revision=12899
Diffstat (limited to 'epan')
-rw-r--r--epan/dissectors/packet-pflog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-pflog.c b/epan/dissectors/packet-pflog.c
index 0b02234189..90e8a7ef22 100644
--- a/epan/dissectors/packet-pflog.c
+++ b/epan/dissectors/packet-pflog.c
@@ -81,10 +81,10 @@ static gint ett_old_pflog = -1;
void
capture_pflog(const guchar *pd, int offset, int len, packet_counts *ld)
{
- struct pfloghdr *pflogh;
+ const struct pfloghdr *pflogh;
unsigned int hdrlen;
- pflogh = (struct pfloghdr *)pd;
+ pflogh = (const struct pfloghdr *)pd;
if (!BYTES_ARE_IN_FRAME(offset, len, sizeof(guint8))) {
ld->other++;