Change in libusrp[master]: libusb_get_device_list() may return a negative number

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/.

fixeria gerrit-no-reply at lists.osmocom.org
Sun Oct 24 21:33:54 UTC 2021


fixeria has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/libusrp refs/changes/29/25929/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211024/470773e8/attachment.htm>


More information about the gerrit-log mailing list