Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 806a779 in mainline


Ignore:
Timestamp:
2018-01-10T18:07:44Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
94a0904
Parents:
8bab0d2
Message:

usb: little changes to make compiler happy

Location:
uspace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ehci/ehci_batch.c

    r8bab0d2 r806a779  
    6262        assert(ehci_batch);
    6363        dma_buffer_free(&ehci_batch->dma_buffer);
     64        usb_log_debug2("Batch(%p): disposed", ehci_batch);
    6465        free(ehci_batch);
    65         usb_log_debug2("Batch(%p): disposed", ehci_batch);
    6666}
    6767
  • uspace/lib/usbdev/src/devdrv.c

    r8bab0d2 r806a779  
    440440         * it makes no sense to speak about alternate interfaces when
    441441         * controlling a device. */
    442         rc = usb_alternate_interfaces_init(&usb_dev->alternate_interfaces,
     442        usb_alternate_interfaces_init(&usb_dev->alternate_interfaces,
    443443            usb_dev->descriptors.full_config,
    444444            usb_dev->descriptors.full_config_size, usb_dev->interface_no);
  • uspace/lib/usbhid/src/hiddescriptor.c

    r8bab0d2 r806a779  
    175175
    176176        if(report_item->usages_count > 0){
    177                 usages = malloc(sizeof(int32_t) * report_item->usages_count);
     177                usages = malloc(sizeof(uint32_t) * report_item->usages_count);
    178178                memcpy(usages, report_item->usages, sizeof(int32_t) *
    179179                                report_item->usages_count);
Note: See TracChangeset for help on using the changeset viewer.