Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@metaphys
Created January 17, 2012 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metaphys/1626798 to your computer and use it in GitHub Desktop.
Save metaphys/1626798 to your computer and use it in GitHub Desktop.
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