Commit 21504c06 authored by Bastien Nocera's avatar Bastien Nocera

Merge branch 'wip/hadess/poll-retval' into 'master'

poll: Fix fp_get_pollfds retval type

See merge request !5
parents 871fddf5 056ea541
Pipeline #1798 passed with stage
in 4 minutes and 10 seconds
......@@ -314,7 +314,7 @@ struct fp_pollfd {
int fp_handle_events_timeout(struct timeval *timeout);
int fp_handle_events(void);
size_t fp_get_pollfds(struct fp_pollfd **pollfds);
ssize_t fp_get_pollfds(struct fp_pollfd **pollfds);
int fp_get_next_timeout(struct timeval *tv);
......@@ -313,12 +313,12 @@ API_EXPORTED int fp_get_next_timeout(struct timeval *tv)
* Returns: the number of pollfds in the resultant list, or negative on error.
API_EXPORTED size_t fp_get_pollfds(struct fp_pollfd **pollfds)
API_EXPORTED ssize_t fp_get_pollfds(struct fp_pollfd **pollfds)
const struct libusb_pollfd **usbfds;
const struct libusb_pollfd *usbfd;
struct fp_pollfd *ret;
size_t cnt = 0;
ssize_t cnt = 0;
size_t i = 0;
usbfds = libusb_get_pollfds(fpi_usb_ctx);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment