Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/mkbd/main.c

    rc1694b6b re540424a  
    4444#include <devman.h>
    4545#include <loc.h>
     46#include <usb/dev/hub.h>
    4647#include <usbhid_iface.h>
    4748#include <usb/dev/pipes.h>
     
    218219        devman_handle_t dev_handle = 0;
    219220       
    220         int rc = usb_resolve_device_handle(devpath, &dev_handle);
     221        int rc = usb_resolve_device_handle(devpath, NULL, NULL, &dev_handle);
    221222        if (rc != EOK) {
    222223                printf("Device not found or not of USB kind: %s.\n",
     
    237238        rc = devman_fun_get_path(dev_handle, path, MAX_PATH_LENGTH);
    238239        if (rc != EOK) {
    239                 printf(NAME ": failed to get path (handle %"
    240                        PRIun "): %s.\n", dev_handle, str_error(errno));
    241240                return ENOMEM;
    242241        }
     
    264263        uint8_t *event = (uint8_t *)malloc(size);
    265264        if (event == NULL) {
    266                 printf("Out of memory.\n");
    267265                // TODO: hangup phone?
    268266                return ENOMEM;
Note: See TracChangeset for help on using the changeset viewer.