Changeset 98000fb in mainline for kernel/generic/src/synch


Ignore:
Timestamp:
2009-06-03T19:34:45Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

Location:
kernel/generic/src/synch
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/synch/futex.c

    r69e68e3 r98000fb  
    6060
    6161static futex_t *futex_find(uintptr_t paddr);
    62 static index_t futex_ht_hash(unative_t *key);
    63 static bool futex_ht_compare(unative_t *key, count_t keys, link_t *item);
     62static size_t futex_ht_hash(unative_t *key);
     63static bool futex_ht_compare(unative_t *key, size_t keys, link_t *item);
    6464static void futex_ht_remove_callback(link_t *item);
    6565
     
    289289 * @return Index into futex hash table.
    290290 */
    291 index_t futex_ht_hash(unative_t *key)
    292 {
    293         return *key & (FUTEX_HT_SIZE-1);
     291size_t futex_ht_hash(unative_t *key)
     292{
     293        return (*key & (FUTEX_HT_SIZE - 1));
    294294}
    295295
     
    301301 * @return True if the item matches the key. False otherwise.
    302302 */
    303 bool futex_ht_compare(unative_t *key, count_t keys, link_t *item)
     303bool futex_ht_compare(unative_t *key, size_t keys, link_t *item)
    304304{
    305305        futex_t *futex;
  • kernel/generic/src/synch/spinlock.c

    r69e68e3 r98000fb  
    7676void spinlock_lock_debug(spinlock_t *sl)
    7777{
    78         count_t i = 0;
     78        size_t i = 0;
    7979        bool deadlock_reported = false;
    8080
  • kernel/generic/src/synch/waitq.c

    r69e68e3 r98000fb  
    416416{
    417417        thread_t *t;
    418         count_t count = 0;
     418        size_t count = 0;
    419419
    420420loop:   
Note: See TracChangeset for help on using the changeset viewer.