summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYegor Yefremov <yegorslists@googlemail.com>2022-02-12 15:07:36 +0100
committerTormod Volden <debian.tormod@gmail.com>2022-03-18 19:16:27 +0100
commit0d9731ef67da17f3ab606a4b41d4acf64b3d4f69 (patch)
tree05d47ce6fd829729623a3adf06bddb3e11cd65e0
parent3b9ce7ba7c30aaf344f65862b27ecceedf2a44ff (diff)
downloadlibusb-0d9731ef67da17f3ab606a4b41d4acf64b3d4f69.tar.gz
android: Fix typo and syntax in comments
Fix a typo and add missing commas. Also, delete a blank line at the end of the file and use /* */ for comments consistently. Closes #1071 Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
-rw-r--r--android/examples/unrooted_android.c7
-rw-r--r--libusb/version_nano.h2
2 files changed, 4 insertions, 5 deletions
diff --git a/android/examples/unrooted_android.c b/android/examples/unrooted_android.c
index e4d52ba..33793c7 100644
--- a/android/examples/unrooted_android.c
+++ b/android/examples/unrooted_android.c
@@ -24,12 +24,12 @@
/*
* This example creates a shared object which can be accessed over JNA or JNI from Java or Kotlin in Android.
- * Hint: If you are using Android Studio set the "Debug type" to "Java Only" to receive debug messages.
+ * Hint: If you are using Android Studio, set the "Debug type" to "Java Only" to receive debug messages.
*/
/*
* Usage:
- * First you have to connect your USB device from the Java side.
+ * First, you have to connect your USB device from the Java side.
* Use the android.hardware.usb class to find the USB device, claim the interfaces, and open the usb_device_connection
* Obtain the native File Descriptor --> usb_device_connection.getFileDescriptor()
* Pass the received int value to the unrooted_usb_description method of this code (over JNA)
@@ -270,7 +270,7 @@ static void print_device(libusb_device *dev, libusb_device_handle *handle)
}
-// fileDescriptor = is the native File Descriptor obtained in Java and transfered to native over JNA for Example.
+/* fileDescriptor = the native file descriptor obtained in Java and transferred to native over JNA, for example */
int unrooted_usb_description(int fileDescriptor)
{
libusb_context *ctx = NULL;
@@ -298,4 +298,3 @@ int unrooted_usb_description(int fileDescriptor)
print_device(libusb_get_device(devh), devh);
return r;
}
-
diff --git a/libusb/version_nano.h b/libusb/version_nano.h
index f38faa3..3806cf8 100644
--- a/libusb/version_nano.h
+++ b/libusb/version_nano.h
@@ -1 +1 @@
-#define LIBUSB_NANO 11707
+#define LIBUSB_NANO 11708