Ignore:
Timestamp:
2011-09-14T18:52:40Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
365e29e2
Parents:
8e3d17f
Message:

usb: add support for packing target_t type into uint32_t

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/remote_usbhc.c

    r8e3d17f r56e9fb0  
    239239
    240240        usb_target_t target = {
    241                 .address = DEV_IPC_GET_ARG1(*call),
    242                 .endpoint = DEV_IPC_GET_ARG2(*call)
     241                {.address = DEV_IPC_GET_ARG1(*call),
     242                .endpoint = DEV_IPC_GET_ARG2(*call) }
    243243        };
    244244        size_t data_buffer_len = DEV_IPC_GET_ARG3(*call);
     
    302302        }
    303303
    304         usb_target_t target = {
     304        usb_target_t target = {{
    305305                .address = DEV_IPC_GET_ARG1(*call),
    306306                .endpoint = DEV_IPC_GET_ARG2(*call)
    307         };
     307        }};
    308308
    309309        int rc;
     
    436436        }
    437437
    438         const usb_target_t target = {
     438        const usb_target_t target = {{
    439439                .address = DEV_IPC_GET_ARG1(*call),
    440440                .endpoint = DEV_IPC_GET_ARG2(*call)
    441         };
     441        }};
    442442
    443443
     
    484484        }
    485485
    486         const usb_target_t target = {
     486        const usb_target_t target = {{
    487487                .address = DEV_IPC_GET_ARG1(*call),
    488488                .endpoint = DEV_IPC_GET_ARG2(*call)
    489         };
     489        }};
    490490
    491491
Note: See TracChangeset for help on using the changeset viewer.