diff options
author | Daniel Drake <dsd@gentoo.org> | 2008-05-05 21:17:03 +0100 |
---|---|---|
committer | Daniel Drake <dsd@gentoo.org> | 2008-05-05 21:17:03 +0100 |
commit | 59c205d542b43d79fe28622dbe8f03a3a3300b6f (patch) | |
tree | 4716a891748e41af48adc968a63115fdf54c3302 /libusb/io.c | |
parent | 88055d4b5913102a90ff666f75fd922c74860dc5 (diff) | |
download | libusb-59c205d542b43d79fe28622dbe8f03a3a3300b6f.tar.gz |
more error code sanitization
Diffstat (limited to 'libusb/io.c')
-rw-r--r-- | libusb/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/io.c b/libusb/io.c index dbce0b1..65a7b95 100644 --- a/libusb/io.c +++ b/libusb/io.c @@ -1092,7 +1092,7 @@ int usbi_add_pollfd(int fd, short events) { struct usbi_pollfd *ipollfd = malloc(sizeof(*ipollfd)); if (!ipollfd) - return -ENOMEM; + return LIBUSB_ERROR_NO_MEM; usbi_dbg("add fd %d events %d", fd, events); ipollfd->pollfd.fd = fd; |