Changeset fe04594 in mainline
- Timestamp:
- 2006-04-05T17:49:32Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 203f4c3
- Parents:
- a9ef68b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/adt/hash_table.c
ra9ef68b rfe04594 54 54 ASSERT(max_keys > 0); 55 55 56 h->entry = malloc(m * sizeof(link_t *), 0);56 h->entry = malloc(m * sizeof(link_t), 0); 57 57 if (!h->entry) { 58 58 panic("cannot allocate memory for hash table\n"); 59 59 } 60 memsetb((__address) h->entry, m * sizeof(link_t *), 0);60 memsetb((__address) h->entry, m * sizeof(link_t), 0); 61 61 62 62 for (i = 0; i < m; i++)
Note:
See TracChangeset
for help on using the changeset viewer.