diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2018-10-24 16:03:52 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2018-10-29 00:09:31 +0000 |
commit | d674c5028f45a5c3bc67a2aafa637c798c3874f0 (patch) | |
tree | 6fb18c28a4c8b30d798ceaa5e363a4b1736ef5b9 /core/uemis-downloader.c | |
parent | 64f0902e0d78ecf9a23016f8048c4e21167b527a (diff) | |
download | subsurface-d674c5028f45a5c3bc67a2aafa637c798c3874f0.tar.gz |
Dive site: use pointer instead of uuid in uemis_helper
Another small step in removing dive-site UUIDs: use a pointer
instead of a UUID in the "uemis_helper" structure.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r-- | core/uemis-downloader.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index dd111a92a..2b44a9852 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -992,8 +992,9 @@ static bool process_raw_buffer(device_data_t *devdata, uint32_t deviceid, char * } else if (!is_log && dive && !strcmp(tag, "divespot_id")) { int divespot_id = atoi(val); if (divespot_id != -1) { - dive->dive_site_uuid = create_dive_site("from Uemis", dive->when)->uuid; - uemis_mark_divelocation(dive->dc.diveid, divespot_id, dive->dive_site_uuid); + struct dive_site *ds = create_dive_site("from Uemis", dive->when); + dive->dive_site_uuid = ds->uuid; + uemis_mark_divelocation(dive->dc.diveid, divespot_id, ds); } #if UEMIS_DEBUG & 2 fprintf(debugfile, "Created divesite %d for diveid : %d\n", dive->dive_site_uuid, dive->dc.diveid); |