diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-04 23:30:01 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2007-02-04 23:30:01 +0100 |
commit | 72b90a4fdaaac88a8779689e150405fcfaf37c3a (patch) | |
tree | 9d596d93324c09d2b9e3ac04f914c8c61d7f9466 /nslcd/dict.c | |
parent | e48261080a16b0bb3565e36cd04f39a274cd35fe (diff) |
don't store const void * as value, just void *
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@234 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/dict.c')
-rw-r--r-- | nslcd/dict.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/nslcd/dict.c b/nslcd/dict.c index 143ab30..3ad7c02 100644 --- a/nslcd/dict.c +++ b/nslcd/dict.c @@ -31,7 +31,7 @@ struct dict_entry { const char *key; - const void *value; + void *value; struct dict_entry *next; }; @@ -87,7 +87,7 @@ DICT *dict_new(void) return dict; } -int dict_put(DICT *dict,const char *key,const void *value) +int dict_put(DICT *dict,const char *key,void *value) { struct dict_entry *entry; entry=dict_entry_find(dict,key); @@ -106,7 +106,7 @@ int dict_put(DICT *dict,const char *key,const void *value) return 0; } -const void *dict_get(DICT *dict,const char *key) +void *dict_get(DICT *dict,const char *key) { struct dict_entry *entry; entry=dict_entry_find(dict,key); @@ -138,7 +138,7 @@ void dict_values_first(DICT *dict) dict->ptr=dict->head; } -const void *dict_values_next(DICT *dict) +void *dict_values_next(DICT *dict) { struct dict_entry *ptr; ptr=dict->ptr; |