summaryrefslogtreecommitdiffstats
path: root/core/uemis-downloader.c
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2018-10-23 19:11:13 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-29 00:09:31 +0000
commitf527a70831a37e736431baa5705c9d188fc12f4b (patch)
tree5260e51c944b193175b9e318457bb281ee760fdf /core/uemis-downloader.c
parent8de471f90e95a5a75d0fec78d5bbf900eb90f235 (diff)
downloadsubsurface-f527a70831a37e736431baa5705c9d188fc12f4b.tar.gz
Dive site: pass dive-site pointer to delete_dive_site()
Instead of passing a uuid, pass a pointer to the dive site. This is small step in an effort to remove uuids. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/uemis-downloader.c')
-rw-r--r--core/uemis-downloader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c
index ce91f9d40..dd111a92a 100644
--- a/core/uemis-downloader.c
+++ b/core/uemis-downloader.c
@@ -1193,7 +1193,7 @@ static void get_uemis_divespot(const char *mountpath, int divespot_id, struct di
if (ods) {
/* if the uuid's are the same, the new site is a duplicate and can be deleted */
if (nds->uuid != ods->uuid) {
- delete_dive_site(nds->uuid);
+ delete_dive_site(nds);
dive->dive_site_uuid = ods->uuid;
}
}
@@ -1202,7 +1202,7 @@ static void get_uemis_divespot(const char *mountpath, int divespot_id, struct di
/* if we can't load the dive site details, delete the site we
* created in process_raw_buffer
*/
- delete_dive_site(dive->dive_site_uuid);
+ delete_dive_site(get_dive_site_by_uuid(dive->dive_site_uuid));
}
}
}