[PATCH 1/4] ostctools: Correct argument order to get_descriptor

Anton Lundin glance at acc.umu.se
Thu Dec 29 07:08:47 PST 2016


This corrects the argument order, which was changed back in
00629c861cc9, but not on this place. Whups.

Signed-off-by: Anton Lundin <glance at acc.umu.se>
---
 core/ostctools.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/ostctools.c b/core/ostctools.c
index c87b8b5..caf7dc2 100644
--- a/core/ostctools.c
+++ b/core/ostctools.c
@@ -17,7 +17,7 @@ static int ostc_prepare_data(int data_model, dc_family_t dc_fam, device_data_t *
 	dev_data->device = NULL;
 	dev_data->context = NULL;
 
-	data_descriptor = get_descriptor(data_model, dc_fam);
+	data_descriptor = get_descriptor(dc_fam, data_model);
 	if (data_descriptor) {
 		dev_data->descriptor = data_descriptor;
 		dev_data->vendor = copy_string(data_descriptor->vendor);
-- 
2.9.3



More information about the subsurface mailing list