Changeset 90b9ab5 in mainline


Ignore:
Timestamp:
2011-04-06T18:10:26Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6ce42e85
Parents:
9783496
Message:

Set data member

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/host/usb_endpoint_manager.c

    r9783496 r90b9ab5  
    3030#include <assert.h>
    3131#include <errno.h>
     32
    3233#include <usb/host/usb_endpoint_manager.h>
    3334
     
    6263}
    6364/*----------------------------------------------------------------------------*/
    64 static int ep_compare(
    65     unsigned long key[], hash_count_t keys, link_t *item)
     65static int ep_compare(unsigned long key[], hash_count_t keys, link_t *item)
    6666{
    6767        assert(item);
    68         ep_t *ep =
    69             hash_table_get_instance(item, ep_t, link);
     68        ep_t *ep = hash_table_get_instance(item, ep_t, link);
    7069        hash_count_t i = 0;
    7170        for (; i < keys; ++i) {
     
    157156        fibril_mutex_lock(&instance->guard);
    158157
    159 
    160158        link_t *item =
    161159            hash_table_find(&instance->ep_table, (unsigned long*)&id);
     
    178176        ep->id = id;
    179177        ep->bw = bw;
     178        ep->data = data;
    180179        link_initialize(&ep->link);
    181180
Note: See TracChangeset for help on using the changeset viewer.