diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-12-02 20:04:07 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-12-02 20:04:07 +0000 |
commit | b74f119d9a50035390ccc60210a5572eedaa9e7f (patch) | |
tree | 4cdac2c3d4735ce7f0df79597a8f6de560006e4a /packet-gssapi.c | |
parent | d0a55f13d913365d2f46720eec7f500ed898005a (diff) |
Don't discard the constness of arguments to GHashTable functions.
svn path=/trunk/; revision=6719
Diffstat (limited to 'packet-gssapi.c')
-rw-r--r-- | packet-gssapi.c | 8 |
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++) |