summaryrefslogtreecommitdiffstats
path: root/core/parse-xml.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-10-10 21:41:36 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-10-16 14:26:37 -0700
commit8549f24c915b05e0e84e73d3d99e7888d3c7c063 (patch)
treeb5696fb7675b448b9f812af79a8492d4ace318b4 /core/parse-xml.c
parent7b06349be55935be9a09310a5c0bba50e4585d35 (diff)
downloadsubsurface-8549f24c915b05e0e84e73d3d99e7888d3c7c063.tar.gz
core: add device_table parameter to device table functions
Instead of accessing the global device table directly, add a parameter to all device-table accessing functions. This makes all places in the code that access the global device table grep-able, which is necessary to include the device-table code in the undo system. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/parse-xml.c')
-rw-r--r--core/parse-xml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/parse-xml.c b/core/parse-xml.c
index 61af0f617..bce6d2f31 100644
--- a/core/parse-xml.c
+++ b/core/parse-xml.c
@@ -829,7 +829,7 @@ static void try_to_fill_dc(struct divecomputer *dc, const char *name, char *buf,
if (MATCH("model", utf8_string, &dc->model))
return;
if (MATCH("deviceid", hex_value, &deviceid)) {
- set_dc_deviceid(dc, deviceid);
+ set_dc_deviceid(dc, deviceid, &device_table);
return;
}
if (MATCH("diveid", hex_value, &dc->diveid))