Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 1153 → Rev 1154

/kernel/trunk/generic/src/adt/hash_table.c
53,11 → 53,11
ASSERT(op && op->hash && op->compare);
ASSERT(max_keys > 0);
h->entry = malloc(m * sizeof(link_t *), 0);
h->entry = malloc(m * sizeof(link_t), 0);
if (!h->entry) {
panic("cannot allocate memory for hash table\n");
}
memsetb((__address) h->entry, m * sizeof(link_t *), 0);
memsetb((__address) h->entry, m * sizeof(link_t), 0);
for (i = 0; i < m; i++)
list_initialize(&h->entry[i]);