diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-11-28 03:57:50 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-11-28 03:57:50 +0000 |
commit | a56c79201d66010ecca23bf6f6d57ef4001ec1af (patch) | |
tree | 7c2cf753bee54e30f47560b8174dd9ec3a8ba5b9 /packet-atalk.c | |
parent | 0abda39c906b53494ba5a0dd1c83c93e4b2a6b36 (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-atalk.c')
-rw-r--r-- | packet-atalk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-atalk.c b/packet-atalk.c index 45ea847a93..a60aacdc86 100644 --- a/packet-atalk.c +++ b/packet-atalk.c @@ -2,7 +2,7 @@ * Routines for AppleTalk packet disassembly: LLAP, DDP, NBP, ATP, ASP, * RTMP. * - * $Id: packet-atalk.c,v 1.83 2002/10/24 06:17:28 guy Exp $ + * $Id: packet-atalk.c,v 1.84 2002/11/28 03:57:49 guy Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -271,8 +271,8 @@ static GMemChunk *asp_request_vals = NULL; /* Hash Functions */ static gint asp_equal (gconstpointer v, gconstpointer v2) { - asp_request_key *val1 = (asp_request_key*)v; - asp_request_key *val2 = (asp_request_key*)v2; + const asp_request_key *val1 = (const asp_request_key*)v; + const asp_request_key *val2 = (const asp_request_key*)v2; if (val1->conversation == val2->conversation && val1->seq == val2->seq && @@ -284,7 +284,7 @@ static gint asp_equal (gconstpointer v, gconstpointer v2) static guint asp_hash (gconstpointer v) { - asp_request_key *asp_key = (asp_request_key*)v; + const asp_request_key *asp_key = (const asp_request_key*)v; return asp_key->seq; } |