Changeset 52c79ac in mainline for kernel/generic/src/adt/hash_table.c
- Timestamp:
- 2007-02-05T12:28:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 093752c
- Parents:
- 7d307e7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/hash_table.c
r7d307e7 r52c79ac 54 54 void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op) 55 55 { 56 in t i;56 index_t i; 57 57 58 58 ASSERT(h); … … 60 60 ASSERT(max_keys > 0); 61 61 62 h->entry = malloc(m * sizeof(link_t), 0);62 h->entry = (link_t *) malloc(m * sizeof(link_t), 0); 63 63 if (!h->entry) { 64 64 panic("cannot allocate memory for hash table\n");
Note:
See TracChangeset
for help on using the changeset viewer.