Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbmid/explore.c

    rb72efe8 r7d521e24  
    5454 * @return Interface @p interface_no is already present in the list.
    5555 */
    56 static bool interface_in_list(list_t *list, int interface_no)
     56static bool interface_in_list(link_t *list, int interface_no)
    5757{
    58         list_foreach(*list, l) {
     58        link_t *l;
     59        for (l = list->next; l != list; l = l->next) {
    5960                usbmid_interface_t *iface
    6061                    = list_get_instance(l, usbmid_interface_t, link);
     
    7475 */
    7576static void create_interfaces(uint8_t *config_descriptor,
    76     size_t config_descriptor_size, list_t *list)
     77    size_t config_descriptor_size, link_t *list)
    7778{
    7879        usb_dp_parser_data_t data = {
     
    180181
    181182        /* Create interface children. */
    182         list_t interface_list;
     183        link_t interface_list;
    183184        list_initialize(&interface_list);
    184185        create_interfaces(config_descriptor_raw, config_descriptor_size,
    185186            &interface_list);
    186187
    187         list_foreach(interface_list, link) {
     188        link_t *link;
     189        for (link = interface_list.next; link != &interface_list;
     190            link = link->next) {
    188191                usbmid_interface_t *iface = list_get_instance(link,
    189192                    usbmid_interface_t, link);
Note: See TracChangeset for help on using the changeset viewer.