Ignore:
Timestamp:
2018-01-04T20:50:52Z (7 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/lib/usbvirt/src/virthub_base.c

    rfacacc71 r46577995  
    5454}
    5555
    56 int virthub_base_init(virthub_base_t *instance, const char *name,
     56errno_t virthub_base_init(virthub_base_t *instance, const char *name,
    5757    usbvirt_device_ops_t *ops, void *data,
    5858    const usb_standard_device_descriptor_t *device_desc,
     
    109109}
    110110
    111 int virthub_base_request(virthub_base_t *instance, usb_target_t target,
     111errno_t virthub_base_request(virthub_base_t *instance, usb_target_t target,
    112112    usb_direction_t dir, const usb_device_request_setup_packet_t *setup,
    113113    void *buffer, size_t buffer_size, size_t *real_size)
     
    143143}
    144144
    145 int virthub_base_get_hub_descriptor(usbvirt_device_t *dev,
     145errno_t virthub_base_get_hub_descriptor(usbvirt_device_t *dev,
    146146    const usb_device_request_setup_packet_t *request, uint8_t *data,
    147147    size_t *act_size)
     
    159159}
    160160
    161 int virthub_base_get_null_status(usbvirt_device_t *dev,
     161errno_t virthub_base_get_null_status(usbvirt_device_t *dev,
    162162    const usb_device_request_setup_packet_t *request, uint8_t *data,
    163163    size_t *act_size)
Note: See TracChangeset for help on using the changeset viewer.