Changeset 5a6cc679 in mainline for uspace/lib/usbdev/src/devpoll.c


Ignore:
Timestamp:
2018-01-31T02:21:24Z (7 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdev/src/devpoll.c

    r132ab5d1 r5a6cc679  
    103103 * @return Always EOK.
    104104 */
    105 static int polling_fibril(void *arg)
     105static errno_t polling_fibril(void *arg)
    106106{
    107107        assert(arg);
     
    130130        while (failed_attempts <= polling->max_failures) {
    131131                size_t actual_size;
    132                 const int rc = usb_pipe_read(pipe, polling->buffer,
     132                const errno_t rc = usb_pipe_read(pipe, polling->buffer,
    133133                    polling->request_size, &actual_size);
    134134
     
    233233 * @retval EOK New fibril polling the device was already started.
    234234 */
    235 int usb_polling_start(usb_polling_t *polling)
     235errno_t usb_polling_start(usb_polling_t *polling)
    236236{
    237237        if (!polling || !polling->device || !polling->ep_mapping || !polling->on_data)
     
    272272 *  @retval EOK Polling fibril has been successfully terminated.
    273273 */
    274 int usb_polling_join(usb_polling_t *polling)
    275 {
    276         int rc;
     274errno_t usb_polling_join(usb_polling_t *polling)
     275{
     276        errno_t rc;
    277277        if (!polling)
    278278                return EBADMEM;
Note: See TracChangeset for help on using the changeset viewer.