Changeset 52c79ac in mainline for kernel/generic/src/adt/hash_table.c


Ignore:
Timestamp:
2007-02-05T12:28:50Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
093752c
Parents:
7d307e7
Message:

explicit typecast, fix signed/unsigned comparison

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/adt/hash_table.c

    r7d307e7 r52c79ac  
    5454void hash_table_create(hash_table_t *h, count_t m, count_t max_keys, hash_table_operations_t *op)
    5555{
    56         int i;
     56        index_t i;
    5757
    5858        ASSERT(h);
     
    6060        ASSERT(max_keys > 0);
    6161       
    62         h->entry = malloc(m * sizeof(link_t), 0);
     62        h->entry = (link_t *) malloc(m * sizeof(link_t), 0);
    6363        if (!h->entry) {
    6464                panic("cannot allocate memory for hash table\n");
Note: See TracChangeset for help on using the changeset viewer.