Changeset 1429 for pjproject/trunk/pjlib/src/pj/hash.c
- Timestamp:
- Sep 8, 2007 7:12:44 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/src/pj/hash.c
r1307 r1429 34 34 { 35 35 struct pj_hash_entry *next; 36 constvoid *key;36 void *key; 37 37 pj_uint32_t hash; 38 38 pj_uint32_t keylen; … … 194 194 entry->next = NULL; 195 195 entry->hash = hash; 196 entry->key = key; 196 if (pool) { 197 entry->key = pj_pool_alloc(pool, keylen); 198 pj_memcpy(entry->key, key, keylen); 199 } else { 200 entry->key = (void*)key; 201 } 197 202 entry->keylen = keylen; 198 203 entry->value = val;
Note: See TracChangeset
for help on using the changeset viewer.