Created
January 17, 2012 14:25
-
-
Save metaphys/1626798 to your computer and use it in GitHub Desktop.
rbutil warning
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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