summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2016-12-29 16:03:26 +0100
committerGravatar Subsurface <dirk@subsurface-divelog.org>2017-01-12 14:15:53 -0800
commitd11dfd2f45fbf0a036d3e2089ff86a0ada43f2e0 (patch)
treeab9e95b1adf925a3124bcd4facb9475d897c2990
parentf3cf9525de6a6e969c8a0baf5364c3be345a5e8e (diff)
downloadsubsurface-d11dfd2f45fbf0a036d3e2089ff86a0ada43f2e0.tar.gz
ostctools: Correct argument order to get_descriptor
This corrects the argument order, which was changed back in 00629c861cc9, but not on this place. Whups. Signed-off-by: Anton Lundin <glance@acc.umu.se>
-rw-r--r--core/ostctools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ostctools.c b/core/ostctools.c
index c87b8b5b0..caf7dc2fc 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);