Browse Source

bitforce: Workaround broken/old compilers by setting device_fd outside of initialisation

Luke Dashjr 12 years ago
parent
commit
c81088797d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitforce.c

+ 1 - 1
driver-bitforce.c

@@ -427,9 +427,9 @@ bool bitforce_detect_oneof(const char * const devpath, struct bitforce_lowl_inte
 		.dev_repr = "BFL",
 		.proc_repr = "BFL",
 		.device_path = devpath,
-		.device_fd = -1,
 		.device_data = &dummy_bfdata,
 	};
+	dummy_cgpu.device_fd = -1;
 
 	applog(LOG_DEBUG, "BFL: Attempting to open %s", devpath);
 	bitforce_open(&dummy_cgpu);