summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2012-04-01 21:30:52 +0100
committerPete Batard <pete@akeo.ie>2012-04-01 21:30:52 +0100
commit985c4fd10d3c6bc48430e629eb4288c277fa59de (patch)
treec9eaea8b843a519b5d3da07cbe7880059aeda39d
parent10dc1ea9a799b13b7423968130da812aa97289bf (diff)
downloadlibusb-985c4fd10d3c6bc48430e629eb4288c277fa59de.tar.gz
Samples: Fix "warning: no newline at end of file" in xusb.c
* Also remove trailing whitespaces
-rw-r--r--examples/xusb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index f1682ad..970458d 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -551,7 +551,7 @@ void read_ms_winsub_feature_descriptors(libusb_device_handle *handle, uint8_t bR
// Read the header part
r = libusb_control_transfer(handle, (uint8_t)(LIBUSB_ENDPOINT_IN|LIBUSB_REQUEST_TYPE_VENDOR|LIBUSB_RECIPIENT_DEVICE),
- // NB: We should use os_fd[i].recipient instead of LIBUSB_RECIPIENT_DEVICE above, as
+ // NB: We should use os_fd[i].recipient instead of LIBUSB_RECIPIENT_DEVICE above, as
// LIBUSB_RECIPIENT_INTERFACE should be used for the Extended Properties.
// However, for Interface requests, the WinUSB DLL forces the low byte of wIndex
// to the interface number, regardless of what you set it to, so we have to
@@ -584,7 +584,7 @@ int test_device(uint16_t vid, uint16_t pid)
{
libusb_device_handle *handle;
libusb_device *dev;
-#ifdef HAS_GETPORTPATH
+#ifdef HAS_GETPORTPATH
uint8_t bus, port_path[8];
#endif
struct libusb_config_descriptor *conf_desc;
@@ -759,7 +759,7 @@ int main(int argc, char** argv)
{
bool show_help = false;
bool debug_mode = false;
-#ifdef HAS_GETVERSION
+#ifdef HAS_GETVERSION
const struct libusb_version* version;
#endif
int j, r;
@@ -876,4 +876,4 @@ int main(int argc, char** argv)
libusb_exit(NULL);
return 0;
-} \ No newline at end of file
+}