Commit b3b32675ffda28a32329339f5f1fec66732be821

Con Kolivas 2013-11-17T17:09:29

Set limit and count to integers to not overflow during failed hotplug attempts and then not trying again.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/usbutils.c b/usbutils.c
index 29ed536..b346d02 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -539,8 +539,8 @@ static const char *nodatareturned = "no data returned ";
 
 // For device limits by driver
 static struct driver_count {
-	uint32_t count;
-	uint32_t limit;
+	int count;
+	int limit;
 } drv_count[DRIVER_MAX];
 
 // For device limits by list of bus/dev