aboutsummaryrefslogtreecommitdiffstats
path: root/packet-gssapi.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-02 20:04:07 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2002-12-02 20:04:07 +0000
commit17b01010a81917bfa0ba746d2d465c185af3e782 (patch)
tree4cdac2c3d4735ce7f0df79597a8f6de560006e4a /packet-gssapi.c
parentd924ea6e82c82fab2f8ae2ad40c753d9fe99c848 (diff)
Don't discard the constness of arguments to GHashTable functions.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6719 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-gssapi.c')
-rw-r--r--packet-gssapi.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/packet-gssapi.c b/packet-gssapi.c
index 0eab01a068..49cfb15bfe 100644
--- a/packet-gssapi.c
+++ b/packet-gssapi.c
@@ -4,7 +4,7 @@
* Copyright 2002, Richard Sharpe <rsharpe@samba.org> Added a few
* bits and pieces ...
*
- * $Id: packet-gssapi.c,v 1.25 2002/11/28 06:48:41 guy Exp $
+ * $Id: packet-gssapi.c,v 1.26 2002/12/02 20:04:07 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -58,8 +58,8 @@ static GHashTable *gssapi_oids;
static gint gssapi_oid_equal(gconstpointer k1, gconstpointer k2)
{
- char *key1 = (char *)k1;
- char *key2 = (char *)k2;
+ const char *key1 = (const char *)k1;
+ const char *key2 = (const char *)k2;
return strcmp(key1, key2) == 0;
}
@@ -67,7 +67,7 @@ static gint gssapi_oid_equal(gconstpointer k1, gconstpointer k2)
static guint
gssapi_oid_hash(gconstpointer k)
{
- char *key = (char *)k;
+ const char *key = (const char *)k;
guint hash = 0, i;
for (i = 0; i < strlen(key); i++)