diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2020-10-10 21:41:36 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-10-16 14:26:37 -0700 |
commit | 8549f24c915b05e0e84e73d3d99e7888d3c7c063 (patch) | |
tree | b5696fb7675b448b9f812af79a8492d4ace318b4 /core/libdivecomputer.c | |
parent | 7b06349be55935be9a09310a5c0bba50e4585d35 (diff) | |
download | subsurface-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/libdivecomputer.c')
-rw-r--r-- | core/libdivecomputer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 071350c8b..f824ed153 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -931,7 +931,7 @@ static unsigned int fixup_suunto_versions(device_data_t *devdata, const dc_event (devinfo->firmware >> 8) & 0xff, (devinfo->firmware >> 0) & 0xff); } - create_device_node(devdata->model, devdata->deviceid, serial_nr, firmware, ""); + create_device_node(&device_table, devdata->model, devdata->deviceid, serial_nr, firmware, ""); return serial; } |