This is merely a historical archive of years 2008-2021, before the migration to mailman3.
A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.
laforge gerrit-no-reply at lists.osmocom.orglaforge has submitted this change. ( https://gerrit.osmocom.org/c/libusrp/+/25929 )
Change subject: libusb_get_device_list() may return a negative number
......................................................................
libusb_get_device_list() may return a negative number
Change-Id: Ibf5f88d51c36ff9577f748c004562bd8ed2e96bf
Fixes: CID#240717
---
M host/lib/usrp_prims_libusb1.cc
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, but someone else must approve
osmith: Looks good to me, approved
diff --git a/host/lib/usrp_prims_libusb1.cc b/host/lib/usrp_prims_libusb1.cc
index 5dfe416..3a348b9 100644
--- a/host/lib/usrp_prims_libusb1.cc
+++ b/host/lib/usrp_prims_libusb1.cc
@@ -183,8 +183,8 @@
// skipped if you know what you're doing.
assert (ctx != NULL);
- size_t cnt = libusb_get_device_list(ctx, &list);
- size_t i = 0;
+ ssize_t cnt = libusb_get_device_list(ctx, &list);
+ ssize_t i = 0;
if (cnt < 0)
fprintf(stderr, "usrp: libusb_get_device_list failed: %s\n",
--
To view, visit https://gerrit.osmocom.org/c/libusrp/+/25929
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings
Gerrit-Project: libusrp
Gerrit-Branch: master
Gerrit-Change-Id: Ibf5f88d51c36ff9577f748c004562bd8ed2e96bf
Gerrit-Change-Number: 25929
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211025/94a8dc57/attachment.htm>