Commit 6d092e92621ae5aa0ce8461132be7462743f5ad5

Luke Dashjr 2012-06-13T16:47:47

Bugfix: Honour forceauto parameter in serial_detect functions

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/fpgautils.c b/fpgautils.c
index 39f3abd..6875305 100644
--- a/fpgautils.c
+++ b/fpgautils.c
@@ -115,7 +115,7 @@ serial_autodetect_devserial(detectone_func_t detectone, const char*prodname)
 }
 
 char
-_serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, autoscan_func_t autoscan, bool force_autoscan)
+_serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, autoscan_func_t autoscan, bool forceauto)
 {
 	if (total_devices == MAX_DEVICES)
 		return 0;
@@ -123,7 +123,6 @@ _serial_detect(const char*dnamec, size_t dnamel, detectone_func_t detectone, aut
 	struct string_elist *iter, *tmp;
 	const char*s;
 	bool inhibitauto = false;
-	bool forceauto = false;
 	char found = 0;
 
 	list_for_each_entry_safe(iter, tmp, &scan_devices, list) {