Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
rbutil warning
diff --git a/rbutil/rbutilqt/base/system.cpp b/rbutil/rbutilqt/base/system.cpp
index 02e6ac9..5894389 100644
--- a/rbutil/rbutilqt/base/system.cpp
+++ b/rbutil/rbutilqt/base/system.cpp
@@ -246,11 +246,10 @@ QMap<uint32_t, QString> System::listUsbDevices(void)
#if defined(Q_OS_LINUX)
#if defined(LIBUSB1)
libusb_device **devs;
- int res;
- ssize_t count;
- res = libusb_init(NULL);
+ libusb_init(NULL);
- count = libusb_get_device_list(NULL, &devs);
+ libusb_get_device_list(NULL, &devs);
libusb_device *dev;
int i = 0;
while((dev = devs[i++]) != NULL) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.