summaryrefslogtreecommitdiff
blob: e86d80918b4a698e2e4bb9f4cd3a16a7a73daccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/acdctl.c
+++ b/acdctl.c
@@ -130,7 +130,7 @@
       next->vendor, next->product, next->description, next->year);
     next++;
   }
-  printf("\n%d displays supported\n", displayCount);
+  printf("\n%ld displays supported\n", displayCount);
 }
 
 void help(const char* program_name) {
@@ -277,7 +277,7 @@
 }
 
 void found_display(int index, struct usb_device *dev) {
-  int ret;
+  int ret = 0;
   usb_dev_handle* display_device = usb_open(dev);
 
   if(display_device) {