Changeset 46577995 in mainline for uspace/app/vuhid/stdreq.c


Ignore:
Timestamp:
2018-01-04T20:50:52Z (8 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
e211ea04
Parents:
facacc71
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:47:53)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:50:52)
Message:

Use errno_t in all uspace and kernel code.

Change type of every variable, parameter and return value that holds an
<errno.h> constant to either errno_t (the usual case), or sys_errno_t
(some places in kernel). This is for the purpose of self-documentation,
as well as for type-checking with a bit of type definition hackery.

After this commit, HelenOS is free of code that mixes error codes with non-error
values on the assumption that error codes are negative.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/vuhid/stdreq.c

    rfacacc71 r46577995  
    4343        vuhid_data_t *vuhid = device->device_data
    4444
    45 int req_get_descriptor(usbvirt_device_t *device,
     45errno_t req_get_descriptor(usbvirt_device_t *device,
    4646    const usb_device_request_setup_packet_t *setup_packet,
    4747    uint8_t *data, size_t *act_size)
     
    7070}
    7171
    72 int req_set_protocol(usbvirt_device_t *device,
     72errno_t req_set_protocol(usbvirt_device_t *device,
    7373    const usb_device_request_setup_packet_t *setup_packet,
    7474    uint8_t *data, size_t *act_size)
     
    8989}
    9090
    91 int req_set_report(usbvirt_device_t *device,
     91errno_t req_set_report(usbvirt_device_t *device,
    9292    const usb_device_request_setup_packet_t *setup_packet,
    9393    uint8_t *data, size_t *act_size)
     
    109109
    110110        /* SET_REPORT is translated to data out */
    111         int rc = iface->on_data_out(iface, data, data_length);
     111        errno_t rc = iface->on_data_out(iface, data, data_length);
    112112
    113113        return rc;
Note: See TracChangeset for help on using the changeset viewer.