aboutsummaryrefslogtreecommitdiffstats
path: root/packet-afp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-11-28 03:57:50 +0000
committerGuy Harris <guy@alum.mit.edu>2002-11-28 03:57:50 +0000
commita56c79201d66010ecca23bf6f6d57ef4001ec1af (patch)
tree7c2cf753bee54e30f47560b8174dd9ec3a8ba5b9 /packet-afp.c
parent0abda39c906b53494ba5a0dd1c83c93e4b2a6b36 (diff)
Arguments to hash routines are gconstpointer's; assign them to const
pointers. The first argument to "sscanf()" is a "const char *"; don't cast const pointers to "char *" when passing them to "sscanf()". Assign the result of "tvb_get_ptr()" to const pointers, not non-const pointers. Make the "pdata" argument to various DCE routines a const pointer. svn path=/trunk/; revision=6688
Diffstat (limited to 'packet-afp.c')
-rw-r--r--packet-afp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-afp.c b/packet-afp.c
index 1a27b7e3fb..e6913aee10 100644
--- a/packet-afp.c
+++ b/packet-afp.c
@@ -2,7 +2,7 @@
* Routines for afp packet dissection
* Copyright 2002, Didier Gautheron <dgautheron@magic.fr>
*
- * $Id: packet-afp.c,v 1.25 2002/10/25 21:59:47 guy Exp $
+ * $Id: packet-afp.c,v 1.26 2002/11/28 03:57:49 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -772,8 +772,8 @@ static GMemChunk *afp_request_vals = NULL;
/* Hash Functions */
static gint afp_equal (gconstpointer v, gconstpointer v2)
{
- afp_request_key *val1 = (afp_request_key*)v;
- afp_request_key *val2 = (afp_request_key*)v2;
+ const afp_request_key *val1 = (const afp_request_key*)v;
+ const afp_request_key *val2 = (const afp_request_key*)v2;
if (val1->conversation == val2->conversation &&
val1->seq == val2->seq) {
@@ -784,7 +784,7 @@ static gint afp_equal (gconstpointer v, gconstpointer v2)
static guint afp_hash (gconstpointer v)
{
- afp_request_key *afp_key = (afp_request_key*)v;
+ const afp_request_key *afp_key = (const afp_request_key*)v;
return afp_key->seq;
}