Added cmake rules
[libftdi] / examples / find_all.c
index 9f5d61c..9cfa4c6 100644 (file)
@@ -1,5 +1,8 @@
-/*
-    Example for ftdi_usb_find_all()
+/* find_all.c
+
+   Example for ftdi_usb_find_all()
+
+   This program is distributed under the GPL, version 2
 */
 
 #include <stdio.h>
@@ -24,7 +27,7 @@ int main(int argc, char **argv)
     i = 0;
     for (curdev = devlist; curdev != NULL; i++) {
         printf("Checking device: %d\n", i);
-        if((ret = ftdi_usb_get_strings(&ftdic, curdev->dev, &manufacturer, 128, description, 128, NULL, 0)) < 0) {
+        if((ret = ftdi_usb_get_strings(&ftdic, curdev->dev, manufacturer, 128, description, 128, NULL, 0)) < 0) {
             fprintf(stderr, "ftdi_usb_get_strings failed: %d (%s)\n", ret, ftdi_get_error_string(&ftdic));
             return EXIT_FAILURE;
         }