aboutsummaryrefslogtreecommitdiff
path: root/lib/support/dict.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/support/dict.h')
-rw-r--r--lib/support/dict.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/support/dict.h b/lib/support/dict.h
index d9462a33..2d87cc00 100644
--- a/lib/support/dict.h
+++ b/lib/support/dict.h
@@ -16,6 +16,7 @@
*
* $Id: dict.h,v 1.22.2.6 2000/11/13 01:36:44 kaz Exp $
* $Name: kazlib_1_20 $
+ * The work has been modified.
*/
#ifndef DICT_H
@@ -69,7 +70,7 @@ typedef struct dict_t {
dnode_alloc_t dict_allocnode;
dnode_free_t dict_freenode;
void *dict_context;
- void *cmp_ctx;
+ const void *cmp_ctx;
int dict_dupes;
#else
int dict_dummmy;
@@ -89,7 +90,7 @@ typedef struct dict_load_t {
extern dict_t *dict_create(dictcount_t, dict_comp_t);
extern void dict_set_allocator(dict_t *, dnode_alloc_t, dnode_free_t, void *);
-extern void dict_set_cmp_context(dict_t *, void *);
+extern void dict_set_cmp_context(dict_t *, const void *);
extern void dict_destroy(dict_t *);
extern void dict_free_nodes(dict_t *);
extern void dict_free(dict_t *);