Changeset 97b199b1 in mainline


Ignore:
Timestamp:
2012-10-09T21:09:39Z (12 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9f4067b6
Parents:
38fc00b
Message:

Slight cleanup in hash_table.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/adt/hash_table.c

    r38fc00b r97b199b1  
    6262
    6363
    64 static size_t round_up_size(size_t size);
    65 static bool alloc_table(size_t bucket_cnt, list_t **pbuckets);
    66 static void clear_items(hash_table_t *h);
    67 static void resize(hash_table_t *h, size_t new_bucket_cnt);
    68 static void grow_if_needed(hash_table_t *h);
    69 static void shrink_if_needed(hash_table_t *h);
     64static size_t round_up_size(size_t);
     65static bool alloc_table(size_t, list_t **);
     66static void clear_items(hash_table_t *);
     67static void resize(hash_table_t *, size_t);
     68static void grow_if_needed(hash_table_t *);
     69static void shrink_if_needed(hash_table_t *);
    7070
    7171/* Dummy do nothing callback to invoke in place of remove_callback == NULL. */
     
    112112        h->apply_ongoing = false;
    113113
    114         if (h->op->remove_callback == 0) {
     114        if (h->op->remove_callback == NULL) {
    115115                h->op->remove_callback = nop_remove_callback;
    116116        }
Note: See TracChangeset for help on using the changeset viewer.